summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
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