Skip to content

Commit

Permalink
Remove include_chain_clauses_in_custom_matcher_descriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
pirj committed Jan 10, 2021
1 parent f3c07ba commit 08f7756
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
11 changes: 3 additions & 8 deletions lib/rspec/core/project_initializer/spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,9 @@
# assertion/expectation library such as wrong or minitest
# assertions if you prefer.
config.expect_with :rspec do |expectations|
# This option will default to `true` in RSpec 4. It makes the `description`
# and `failure_message` of custom matchers include text for helper methods
# defined using `chain`, e.g.:
# be_bigger_than(2).and_smaller_than(4).description
# # => "be bigger than 2 and smaller than 4"
# ...rather than:
# # => "be bigger than 2"
expectations.include_chain_clauses_in_custom_matcher_descriptions = true
# The default output length is 200, you can increase it to make the
# output more verbose, or decrease it to make it more concise.
expectations.max_formatted_output_length = 200
end

# rspec-mocks config goes here. You can use an alternate test double
Expand Down
1 change: 0 additions & 1 deletion spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@ def handle_current_dir_change
c.include CommonHelpers

c.expect_with :rspec do |expectations|
expectations.include_chain_clauses_in_custom_matcher_descriptions = true
expectations.max_formatted_output_length = 1000
end

Expand Down

0 comments on commit 08f7756

Please sign in to comment.