class RSpec::Matchers::BuiltIn::YieldWithArgs

def args_match?

def args_match?
  if @expected.empty? # expect {...}.to yield_with_args
    @positive_args_failure = "yielded with no arguments" if @actual.empty?
    return !@actual.empty?
  end
  unless match = all_args_match?
    @positive_args_failure = "yielded with unexpected arguments" +
      "\nexpected: #{@expected.inspect}" +
      "\n     got: #{@actual.inspect} (compared using === and ==)"
  end
  match
end