diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 4f75745a6d..7d4eb0a3f5 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -87,6 +87,9 @@ def handle_current_dir_change c.expect_with :rspec do |expectations| expectations.include_chain_clauses_in_custom_matcher_descriptions = true expectations.max_formatted_output_length = 1000 + if expectations.respond_to? :strict_predicate_matchers= + expectations.strict_predicate_matchers = true + end end c.mock_with :rspec do |mocks|