Skip to content
This repository has been archived by the owner on Nov 30, 2024. It is now read-only.

Commit

Permalink
Update lib/rspec/support/method_signature_verifier.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
pirj authored Feb 25, 2024
1 parent 97cbf4e commit 0645cdf
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion lib/rspec/support/method_signature_verifier.rb
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,6 @@ def has_kw_args_in?(args)
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)

# If the method signature contains **kwargs, the last argument being a hash means its the kwargs hash.
# The hash being a required positional argument is considered inside could_contain_kw_args
return true if @allows_any_kw_args
Expand Down

0 comments on commit 0645cdf

Please sign in to comment.