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

Commit 19be4b2

Browse files
authored
Merge pull request #2848 from rspec/remove-include_chain_clauses_in_custom_matcher_descriptions
Remove include_chain_clauses_in_custom_matcher_descriptions
2 parents 23bbc51 + 08f7756 commit 19be4b2

File tree

2 files changed

+3
-9
lines changed

2 files changed

+3
-9
lines changed

lib/rspec/core/project_initializer/spec/spec_helper.rb

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,9 @@
1818
# assertion/expectation library such as wrong or minitest
1919
# assertions if you prefer.
2020
config.expect_with :rspec do |expectations|
21-
# This option will default to `true` in RSpec 4. It makes the `description`
22-
# and `failure_message` of custom matchers include text for helper methods
23-
# defined using `chain`, e.g.:
24-
# be_bigger_than(2).and_smaller_than(4).description
25-
# # => "be bigger than 2 and smaller than 4"
26-
# ...rather than:
27-
# # => "be bigger than 2"
28-
expectations.include_chain_clauses_in_custom_matcher_descriptions = true
21+
# The default output length is 200, you can increase it to make the
22+
# output more verbose, or decrease it to make it more concise.
23+
expectations.max_formatted_output_length = 200
2924
end
3025

3126
# rspec-mocks config goes here. You can use an alternate test double

spec/spec_helper.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,6 @@ def handle_current_dir_change
8080
c.include CommonHelpers
8181

8282
c.expect_with :rspec do |expectations|
83-
expectations.include_chain_clauses_in_custom_matcher_descriptions = true
8483
expectations.max_formatted_output_length = 1000
8584
end
8685

0 commit comments

Comments
 (0)