diff --git a/lib/rspec/support/method_signature_verifier.rb b/lib/rspec/support/method_signature_verifier.rb index 56af7851..b98789b3 100644 --- a/lib/rspec/support/method_signature_verifier.rb +++ b/lib/rspec/support/method_signature_verifier.rb @@ -80,7 +80,7 @@ def invalid_kw_args_from(given_kw_args) end # Considering the arg types, are there kw_args? - def has_kw_args_in?(args) + def has_kw_args_in?(args) # rubocop:disable Metrics/CyclomaticComplexity if RubyFeatures.kw_arg_separation? # If the last arg is a hash, depending on the signature it could be kw_args or a positional parameter. return false unless Hash === args.last && could_contain_kw_args?(args)