Skip to content

Commit cfc4602

Browse files
stanhuJens-G
authored andcommitted
ruby: fix failing tests with Ruby 3.0
The tests were previously failing due to keyword argument changes in Ruby 3.0.
1 parent b4432b8 commit cfc4602

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/rb/spec/http_client_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@
124124
expect(http).to receive(:use_ssl=).with(true)
125125
expect(http).to receive(:verify_mode=).with(OpenSSL::SSL::VERIFY_PEER)
126126
expect(http).to receive(:post).with(@service_path, "test",
127-
"Content-Type" => "application/x-thrift") do
127+
{"Content-Type" => "application/x-thrift"}) do
128128
double("Net::HTTPOK").tap do |response|
129129
expect(response).to receive(:body).and_return "data"
130130
expect(response).to receive(:code).and_return "200"
@@ -146,7 +146,7 @@
146146
expect(http).to receive(:use_ssl=).with(true)
147147
expect(http).to receive(:verify_mode=).with(OpenSSL::SSL::VERIFY_NONE)
148148
expect(http).to receive(:post).with(@service_path, "test",
149-
"Content-Type" => "application/x-thrift") do
149+
{"Content-Type" => "application/x-thrift"}) do
150150
double("Net::HTTPOK").tap do |response|
151151
expect(response).to receive(:body).and_return "data"
152152
expect(response).to receive(:code).and_return "200"

0 commit comments

Comments
 (0)