RSpec.configure do |config| config.mock_framework = :rspec config.mock_with :rspec do |mocks| mocks.verify_partial_doubles = true end end