From 3d8e4d6037d47d604a6670de333d3a931279b673 Mon Sep 17 00:00:00 2001 From: kou Date: Sat, 26 Dec 2015 09:33:43 +0000 Subject: * 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 --- test/xmlrpc/test_client.rb | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'test/xmlrpc') 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 -- cgit v1.2.3