We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aeecc0a commit b9b19b1Copy full SHA for b9b19b1
test/test_ruby_http_client.rb
@@ -253,6 +253,14 @@ def add_ssl
253
assert_equal(http.verify_mode, OpenSSL::SSL::VERIFY_PEER)
254
end
255
256
+ def test_add_http_options
257
+ uri = URI.parse('https://localhost:4010')
258
+ http = Net::HTTP.new(uri.host, uri.port)
259
+ http = @client_with_options.add_http_options(http)
260
+ assert_equal(http.read_timeout, 60)
261
+ assert_equal(http.write_timeout, 60)
262
+ end
263
+
264
def test__
265
url1 = @client._('test')
266
assert_equal(['test'], url1.url_path)
0 commit comments