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
|