lib/rspec/matchers/built_in/yield.rb in rspec-expectations-3.6.0 vs lib/rspec/matchers/built_in/yield.rb in rspec-expectations-3.7.0
- old
+ new
@@ -297,10 +297,10 @@
end
# @private
def description
desc = 'yield with args'
- desc << "(#{expected_arg_description})" unless @expected.empty?
+ desc = "#{desc}(#{expected_arg_description})" unless @expected.empty?
desc
end
# @private
def supports_block_expectations?