lib/rspec/expectations/expectation_target.rb in rspec-expectations-3.7.0 vs lib/rspec/expectations/expectation_target.rb in rspec-expectations-3.8.0
- old
+ new
@@ -110,10 +110,10 @@
private
def enforce_block_expectation(matcher)
return if supports_block_expectations?(matcher)
- raise ExpectationNotMetError, "You must pass an argument rather than a block to use the provided " \
+ raise ExpectationNotMetError, "You must pass an argument rather than a block to `expect` to use the provided " \
"matcher (#{RSpec::Support::ObjectFormatter.format(matcher)}), or the matcher must implement " \
"`supports_block_expectations?`."
end
def supports_block_expectations?(matcher)