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