summaryrefslogtreecommitdiff
path: root/test/soap/test_streamhandler.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/soap/test_streamhandler.rb')
-rw-r--r--test/soap/test_streamhandler.rb20
1 files changed, 13 insertions, 7 deletions
diff --git a/test/soap/test_streamhandler.rb b/test/soap/test_streamhandler.rb
index fa0080e9f1..a8d06d5f2a 100644
--- a/test/soap/test_streamhandler.rb
+++ b/test/soap/test_streamhandler.rb
@@ -80,13 +80,6 @@ class TestStreamHandler < Test::Unit::TestCase
Thread.current.abort_on_exception = true
server.start
}
- while server.status != :Running
- sleep 0.1
- unless t.alive?
- t.join
- raise
- end
- end
t
end
@@ -141,6 +134,19 @@ __EOX__
assert(/^text\/xml;/ =~ h["content-type"])
end
+ def test_uri
+ # initialize client with URI object
+ @client = SOAP::RPC::Driver.new(URI.parse(@url), '')
+ @client.add_method("do_server_proc")
+ # same as test_normal
+ str = ""
+ @client.wiredump_dev = str
+ assert_nil(@client.do_server_proc)
+ r, h = parse_req_header(str)
+ assert_match(%r"POST / HTTP/1.", r)
+ assert(/^text\/xml;/ =~ h["content-type"])
+ end
+
def test_basic_auth
unless Object.const_defined?('HTTPAccess2')
# soap4r + net/http + basic_auth is not supported.