Skip to content

Commit 2521d7f

Browse files
committed
[Transport] Updates Curb and Manticore tests
1 parent eec1cf0 commit 2521d7f

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

elasticsearch-transport/test/unit/transport_curb_test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ class Elasticsearch::Transport::Transport::HTTP::FaradayTest < Minitest::Test
5757
should "perform request with headers" do
5858
@transport.connections.first.connection.expects(:put_data=).with('{"foo":"bar"}')
5959
@transport.connections.first.connection.expects(:http).with(:POST).returns(stub_everything)
60-
@transport.connections.first.connection.headers.expects(:merge!).with("Content-Type" => "application/x-ndjson")
60+
@transport.connections.first.connection.headers.expects(:merge!).with({"Content-Type" => "application/x-ndjson"})
6161

6262
@transport.perform_request 'POST', '/', {}, {:foo => 'bar'}, {"Content-Type" => "application/x-ndjson"}
6363
end

elasticsearch-transport/test/unit/transport_manticore_test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ def common_headers
215215
transport_options: { potatoes: 1 }
216216
}
217217

218-
::Manticore::Client.expects(:new).with(potatoes: 1, ssl: {})
218+
::Manticore::Client.expects(:new).with({ potatoes: 1, ssl: {} })
219219
transport = Manticore.new(hosts: [{ host: 'foobar', port: 1234 }], options: options)
220220
assert_equal(transport.options[:transport_options][:potatoes], 1)
221221
end

0 commit comments

Comments
 (0)