class RSpec::Mocks::VerifyingMessageExpectation

def validate_expected_arguments!

def validate_expected_arguments!
  return if method_reference.nil?
  method_reference.with_signature do |signature|
    args     = yield signature
    verifier = Support::LooseSignatureVerifier.new(signature, args)
    unless verifier.valid?
      # Fail fast is required, otherwise the message expectation will fail
      # as well ("expected method not called") and clobber this one.
      @failed_fast = true
      @error_generator.raise_invalid_arguments_error(verifier)
    end
  end
end