From 8d1a233cf8585d969fc7e92d9ce10a6c21cc74a1 Mon Sep 17 00:00:00 2001 From: Graeme Porteous Date: Thu, 16 Jan 2025 10:13:05 +0000 Subject: [PATCH] Fix tests under Ruby 3+ In Ruby 3, you must explicitly use the double splat operator (`**`) to convert a Hash into keyword arguments. Without it, the Hash is treated as a single positional argument. --- spec/icasework/document_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/icasework/document_spec.rb b/spec/icasework/document_spec.rb index 4f4d2d5..adf39bc 100644 --- a/spec/icasework/document_spec.rb +++ b/spec/icasework/document_spec.rb @@ -47,7 +47,7 @@ end describe '#find' do - subject(:document) { described_class.find(payload) } + subject(:document) { described_class.find(**payload) } before do allow(described_class).to receive(:where).and_return(