From e1d622c09d5ba5c42232eb13d374d74ed1d1522e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABtan=20Masson?= Date: Fri, 5 Feb 2021 01:16:33 +0100 Subject: [PATCH] Handle argument delegation for Ruby 3 (#1406) --- 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)