Jira (FACT-2420) Remove unused and worng stubs and method mocks

2 views
Skip to first unread message

Gheorghe Popescu (Jira)

unread,
Feb 28, 2020, 5:36:03 AM2/28/20
to puppe...@googlegroups.com
Gheorghe Popescu created an issue
 
Facter / Task FACT-2420
Remove unused and worng stubs and method mocks
Issue Type: Task Task
Assignee: Unassigned
Created: 2020/02/28 2:35 AM
Priority: Normal Normal
Reporter: Gheorghe Popescu

Enable rspec restrictions on mocks and fix tests

config.mock_with :rspec do |mocks|
    # This option should be set when all dependencies are being loaded
    # before a spec run, as is the case in a typical spec helper. It will
    # cause any verifying double instantiation for a class that does not
    # exist to raise, protecting against incorrectly spelt names.
    mocks.verify_doubled_constant_names = true
 
    # This option forces the same argument and method existence checks that are
    # performed for object_double are also performed on partial doubles.
    # You should set this unless you have a good reason not to.
    # It defaults to off only for backwards compatibility.
    mocks.verify_partial_doubles = true
  end

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v8.5.2#805002-sha1:a66f935)
Atlassian logo
Reply all
Reply to author
Forward
0 new messages