Skip to content

Commit

Permalink
Enable strict_predicate_matchers when available
Browse files Browse the repository at this point in the history
  • Loading branch information
marcandre committed Sep 2, 2020
1 parent 31ff6c9 commit 3e8b6b1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions spec/spec_helper.rb
Expand Up @@ -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|
Expand Down

0 comments on commit 3e8b6b1

Please sign in to comment.