diff options
author | kou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-12-26 09:33:43 +0000 |
---|---|---|
committer | kou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-12-26 09:33:43 +0000 |
commit | 3d8e4d6037d47d604a6670de333d3a931279b673 (patch) | |
tree | 8688b65e18452be5f2c53c3bccd7929a846e807e /test | |
parent | 548cb582a36abe720a6f6a98262b75df4eedbee0 (diff) |
* 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/trunk@53318 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r-- | test/xmlrpc/test_client.rb | 9 |
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 |