@api private Provides the implementation for `yield_with_args`. Not intended to be instantiated directly.
@private
# File lib/rspec/matchers/built_in/yield.rb, line 275 def description desc = "yield with args" desc << "(#{expected_arg_description})" unless @expected.empty? desc end
@private
# File lib/rspec/matchers/built_in/yield.rb, line 260 def does_not_match?(block) !matches?(block) && @probe.has_block? end
@private
# File lib/rspec/matchers/built_in/yield.rb, line 265 def failure_message "expected given block to yield with arguments, but #{positive_failure_reason}" end
@private
# File lib/rspec/matchers/built_in/yield.rb, line 270 def failure_message_when_negated "expected given block not to yield with arguments, but #{negative_failure_reason}" end
Generated with the Darkfish Rdoc Generator 2.