Class: RSpec::Support::LooseSignatureVerifier Private
Do not use. This class is for internal use only.
Relationships & Source Files | |
Namespace Children | |
Classes:
| |
Super Chains via Extension / Inclusion / Inheritance | |
Class Chain:
self,
MethodSignatureVerifier
|
|
Instance Chain:
self,
MethodSignatureVerifier
|
|
Inherits: |
RSpec::Support::MethodSignatureVerifier
|
Defined in: | rspec-support/lib/rspec/support/method_signature_verifier.rb |
Overview
Allows matchers to be used instead of providing keyword arguments. In practice, when this happens only the arity of the method is verified.
Class Method Summary
MethodSignatureVerifier
- Inherited
Instance Attribute Summary
MethodSignatureVerifier
- Inherited
Instance Method Summary
- #split_args(*args) private Internal use only
MethodSignatureVerifier
- Inherited
Instance Method Details
#split_args(*args) (private)
[ GitHub ]# File 'rspec-support/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