Skip to content
This repository was archived by the owner on Nov 30, 2024. It is now read-only.

Commit 1b7c5f1

Browse files
committed
Enable strict_predicate_matchers when available
1 parent a58e1ae commit 1b7c5f1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

spec/spec_helper.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,9 @@ def handle_current_dir_change
8787
c.expect_with :rspec do |expectations|
8888
expectations.include_chain_clauses_in_custom_matcher_descriptions = true
8989
expectations.max_formatted_output_length = 1000
90+
if expectations.respond_to? :strict_predicate_matchers=
91+
expectations.strict_predicate_matchers = true
92+
end
9093
end
9194

9295
c.mock_with :rspec do |mocks|

0 commit comments

Comments
 (0)