Skip to content

Commit

Permalink
test: Fix the passing of arguments (#69)
Browse files Browse the repository at this point in the history
This is needed to work with Ruby 3.0 or later.

```
  On subject Groonga::Client,
  unexpected method invocation:
    open(host: "127.0.0.1", port: 2929, protocol: :http, read_timeout: 60)
  expected invocations:
  - open({:host=>"127.0.0.1", :port=>2929, :protocol=>:http, :read_timeout=>60})
```
  • Loading branch information
abetomo committed Apr 4, 2024
1 parent 4f7a65b commit 1d54a43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/test-replayer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def mock_client_open(expected_options)
:read_timeout => 60,
}
expected_open_options = default_options.merge(expected_options)
mock(Groonga::Client).open(expected_open_options).yields(client) do
mock(Groonga::Client).open(**expected_open_options).yields(client) do
client
end
end
Expand Down

0 comments on commit 1d54a43

Please sign in to comment.