class RSpec::Mocks::VerifyingMethodDouble

def validate_arguments!(actual_args)

def validate_arguments!(actual_args)
  @method_reference.with_signature do |signature|
    verifier = Support::MethodSignatureVerifier.new(signature, actual_args)
    unless verifier.valid?
      raise ArgumentError, verifier.error_message
    end
  end
end