Skip to content

Commit 71c4364

Browse files
authored
Merge pull request #2352 from rspec/combine-config
Combine scattered config
2 parents a9e3f18 + a18e334 commit 71c4364

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

spec/spec_helper.rb

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,17 +30,14 @@ def self.run_all(reporter = nil)
3030
RSpec.configure do |config|
3131
config.expect_with :rspec do |expectations|
3232
expectations.include_chain_clauses_in_custom_matcher_descriptions = true
33+
expectations.max_formatted_output_length = 1000
3334
end
3435

3536
config.mock_with :rspec do |mocks|
3637
mocks.verify_partial_doubles = true
3738
mocks.verify_doubled_constant_names = true
3839
end
3940

40-
config.expect_with :rspec do |c|
41-
c.max_formatted_output_length = 1000
42-
end
43-
4441
config.filter_run :focus
4542
config.run_all_when_everything_filtered = true
4643

0 commit comments

Comments
 (0)