spec/spec_helper.rb in chef-vault-2.9.2 vs spec/spec_helper.rb in chef-vault-3.0.0.rc1
- old
+ new
@@ -37,9 +37,10 @@
config.mock_with :rspec do |mocks|
# Prevents you from mocking or stubbing a method that does not exist on
# a real object. This is generally recommended, and will default to
# `true` in RSpec 4.
mocks.verify_partial_doubles = true
+ mocks.allow_message_expectations_on_nil = true
end
# The settings below are suggested to provide a good initial experience
# with RSpec, but feel free to customize to your heart's content.
# These two settings work together to allow you to limit a spec run