class RSpec::Matchers::BuiltIn::YieldWithArgs

def negative_failure_reason

def negative_failure_reason
  if !@probe.has_block?
    'was not a block'
  elsif @args_matched_when_yielded && !@expected.empty?
    'yielded with expected arguments' \
      "\nexpected not: #{surface_descriptions_in(@expected).inspect}" \
      "\n         got: #{@actual_formatted}"
  else
    'did'
  end
end