summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-02-25 10:29:39 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-02-25 10:29:39 +0000
commitabe1b00d16837ce5a1fc25167cb91489dac26bb2 (patch)
treee210e3ec5a5ca84cb0c44a0d1c8b91635288540e /test
parentca8b2d26f03b5bb5e71a0de6bab1580b6326fe14 (diff)
merge revision(s) 53318: [Backport #11489]
* lib/xmlrpc/client.rb: Support SSL options in async methods of XMLRPC::Client. [Bug #11489] Reported by Aleksandar Kostadinov. Thanks!!! git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_1@53935 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r--test/xmlrpc/test_client.rb9
1 files changed, 7 insertions, 2 deletions
diff --git a/test/xmlrpc/test_client.rb b/test/xmlrpc/test_client.rb
index 2ecbe187bc..ac13c17110 100644
--- a/test/xmlrpc/test_client.rb
+++ b/test/xmlrpc/test_client.rb
@@ -9,10 +9,15 @@ end
module XMLRPC
class ClientTest < MiniTest::Unit::TestCase
module Fake
- class HTTP
- attr_accessor :read_timeout, :open_timeout, :use_ssl
+ class HTTP < Net::HTTP
+ class << self
+ def new(*args, &block)
+ Class.method(:new).unbind.bind(self).call(*args, &block)
+ end
+ end
def initialize responses = {}
+ super("127.0.0.1")
@started = false
@responses = responses
end