summaryrefslogtreecommitdiff
path: root/test/xmlrpc
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-03-29 05:43:04 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-03-29 05:43:04 +0000
commit1178844958750b4143105200ea68610e44d9f5ed (patch)
treeb7c80f687855ab65b8a0b1a9287390bc1698bdf5 /test/xmlrpc
parent4b183abd8cabfc5ad12db8db518a8dae05da25f4 (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_3@54359 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/xmlrpc')
-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 5a74c5265b..634de02d4d 100644
--- a/test/xmlrpc/test_client.rb
+++ b/test/xmlrpc/test_client.rb
@@ -10,10 +10,15 @@ end
module XMLRPC
class ClientTest < Test::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