class RSpec::Support::LooseSignatureVerifier
Allows matchers to be used instead of providing keyword arguments. In practice, when this happens only the arity of the method is verified.
@private
Private Instance Methods
Source
# File lib/rspec/support/method_signature_verifier.rb, line 398 def split_args(*args) if RSpec::Support.is_a_matcher?(args.last) && @signature.could_contain_kw_args?(args) args.pop @signature = SignatureWithKeywordArgumentsMatcher.new(@signature) end super(*args) end
Calls superclass method
RSpec::Support::MethodSignatureVerifier#split_args