23 lines
825 B
Diff
23 lines
825 B
Diff
From 937256be204487727727cecc18519d85b91201d5 Mon Sep 17 00:00:00 2001
|
|
From: =?UTF-8?q?Ga=C3=ABtan=20Masson?= <im.gaetanmasson@gmail.com>
|
|
Date: Thu, 28 Jan 2021 20:25:05 +0100
|
|
Subject: [PATCH] Handle argument delegation for Ruby 3
|
|
|
|
---
|
|
lib/shoulda/matchers/rails_shim.rb | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/lib/shoulda/matchers/rails_shim.rb b/lib/shoulda/matchers/rails_shim.rb
|
|
index b426b575a..6cecb4b0a 100644
|
|
--- a/lib/shoulda/matchers/rails_shim.rb
|
|
+++ b/lib/shoulda/matchers/rails_shim.rb
|
|
@@ -65,7 +65,7 @@ def make_controller_request(context, verb, action, request_params)
|
|
request_params
|
|
end
|
|
|
|
- context.__send__(verb, action, params)
|
|
+ context.__send__(verb, action, **params)
|
|
end
|
|
|
|
def serialized_attributes_for(model)
|