rubygem-rspec-mocks/rubygem-rspec-mocks-3.12.0-fixup-argument-forwarding-ruby32.patch

23 lines
794 B
Diff

From c1840fcf4a08a2e54aabb18df454544f950f679e Mon Sep 17 00:00:00 2001
From: ojab <ojab@ojab.ru>
Date: Wed, 16 Nov 2022 22:56:12 +0000
Subject: [PATCH] Fixup argument forwarding on ruby-3.2
Fixes #1495
---
lib/rspec/mocks/verifying_proxy.rb | 1 +
1 file changed, 1 insertion(+)
diff --git a/lib/rspec/mocks/verifying_proxy.rb b/lib/rspec/mocks/verifying_proxy.rb
index b39871c87..1d8d207dc 100644
--- a/lib/rspec/mocks/verifying_proxy.rb
+++ b/lib/rspec/mocks/verifying_proxy.rb
@@ -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|