Skip to content

Commit

Permalink
Fix tests under Ruby 3+
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
gbp committed Jan 16, 2025
1 parent 726cd45 commit 8d1a233
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/icasework/document_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 8d1a233

Please sign in to comment.