From 3e8b6b13706d5015b9065271c71bf7df9d4af71c Mon Sep 17 00:00:00 2001 From: Marc-Andre Lafortune Date: Tue, 1 Sep 2020 10:17:04 -0400 Subject: [PATCH] Enable strict_predicate_matchers when available --- spec/spec_helper.rb | 3 +++ 1 file changed, 3 insertions(+) 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|