Skip to content

Commit

Permalink
Fix args forwarding on Ruby 3.2
Browse files Browse the repository at this point in the history
Related:
  - #1497
  - #1502

Co-authored-by: Slava Kardakov <ojab@ojab.ru>
  • Loading branch information
2 people authored and pirj committed Jan 4, 2023
1 parent 024ae45 commit 68fefd1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/rspec/mocks/verifying_proxy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@ def proxy_method_invoked(obj, *args, &block)
validate_arguments!(args)
super
end
ruby2_keywords :proxy_method_invoked if respond_to?(:ruby2_keywords, true)

def validate_arguments!(actual_args)
@method_reference.with_signature do |signature|
Expand Down

0 comments on commit 68fefd1

Please sign in to comment.