ruby: fix failing tests with Ruby 3.0
The tests were previously failing due to keyword argument changes in
Ruby 3.0.
diff --git a/lib/rb/spec/http_client_spec.rb b/lib/rb/spec/http_client_spec.rb
index 292c752..bc7e128 100644
--- a/lib/rb/spec/http_client_spec.rb
+++ b/lib/rb/spec/http_client_spec.rb
@@ -124,7 +124,7 @@
expect(http).to receive(:use_ssl=).with(true)
expect(http).to receive(:verify_mode=).with(OpenSSL::SSL::VERIFY_PEER)
expect(http).to receive(:post).with(@service_path, "test",
- "Content-Type" => "application/x-thrift") do
+ {"Content-Type" => "application/x-thrift"}) do
double("Net::HTTPOK").tap do |response|
expect(response).to receive(:body).and_return "data"
expect(response).to receive(:code).and_return "200"
@@ -146,7 +146,7 @@
expect(http).to receive(:use_ssl=).with(true)
expect(http).to receive(:verify_mode=).with(OpenSSL::SSL::VERIFY_NONE)
expect(http).to receive(:post).with(@service_path, "test",
- "Content-Type" => "application/x-thrift") do
+ {"Content-Type" => "application/x-thrift"}) do
double("Net::HTTPOK").tap do |response|
expect(response).to receive(:body).and_return "data"
expect(response).to receive(:code).and_return "200"