class RSpec::Matchers::BuiltIn::YieldWithArgs

def args_currently_match?

def args_currently_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: #{surface_descriptions_in(@expected).inspect}" \
      "\n     got: #{@actual_formatted}"
  end
  match
end