Skip to content

Commit

Permalink
🔇 Fix ruby 2.7 keyword argument warning
Browse files Browse the repository at this point in the history
There is _some_ value in testing that it works even without this change.
But the main purpose of the test is simply testing the conversion from a
hash parameter.  Forcing the kwargs to be empty is fine.

Other than backports, maybe, this is the last ruby 2.7 concession I'll
be making before we raise the minimum ruby requirement.  😄
  • Loading branch information
nevans committed Jun 22, 2024
1 parent 156f86b commit c921580
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/net/imap/test_deprecated_client_options.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class InitializeTests < DeprecatedClientOptionsTest

test "Convert obsolete options hash to keywords" do
run_fake_server_in_thread do |server|
with_client(server.host, {port: server.port, ssl: false}) do |client|
with_client(server.host, {port: server.port, ssl: false}, **{}) do |client|
assert_equal server.host, client.host
assert_equal server.port, client.port
assert_equal false, client.ssl_ctx_params
Expand Down

0 comments on commit c921580

Please sign in to comment.