Skip to content

Commit 50a2004

Browse files
committed
Conditionally use include_chain_clauses_in_custom_matcher_descriptions
1 parent d7e1bb4 commit 50a2004

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

spec/spec_helper.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ def self.run_all(reporter = nil)
3838
# See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
3939
RSpec.configure do |config|
4040
config.expect_with :rspec do |expectations|
41-
expectations.include_chain_clauses_in_custom_matcher_descriptions = true
41+
# include_chain_clauses_in_custom_matcher_descriptions is removed in RSpec Expectations 4
42+
expectations.include_chain_clauses_in_custom_matcher_descriptions = true if expectations.respond_to?(:include_chain_clauses_in_custom_matcher_descriptions=)
4243
expectations.max_formatted_output_length = 1000
4344
end
4445

0 commit comments

Comments
 (0)