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

split_args(*args) click to toggle source
# File lib/rspec/support/method_signature_verifier.rb, line 384
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