summaryrefslogtreecommitdiff
path: root/test/xmlrpc
diff options
context:
space:
mode:
authortenderlove <tenderlove@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-03-02 23:46:17 +0000
committertenderlove <tenderlove@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-03-02 23:46:17 +0000
commit1836f44fe937bce25e77bbd1c9b881e0df38b42c (patch)
tree62628356587795b452b249ca1f4121483b5dbadc /test/xmlrpc
parentcd85cd25b4f129225d20d36fa5326e9e57901da0 (diff)
* lib/xmlrpc/client.rb (new2): use URI for uri parsing.
* test/xmlrpc/test_client.rb: test that query params are passed to the client constructor. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34884 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/xmlrpc')
-rw-r--r--test/xmlrpc/test_client.rb11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/xmlrpc/test_client.rb b/test/xmlrpc/test_client.rb
index 353bfc5..fd22630 100644
--- a/test/xmlrpc/test_client.rb
+++ b/test/xmlrpc/test_client.rb
@@ -132,5 +132,16 @@ module XMLRPC
XMLRPC::Client.new2 ':::::'
end
end
+
+ def test_new2_path_with_query
+ client = FakeClient.new2 'http://example.org/foo?bar=baz'
+ host, path, port, *rest = client.args
+
+ assert_equal 'example.org', host
+ assert_equal '/foo?bar=baz', path
+ assert port
+
+ rest.each { |x| refute x }
+ end
end
end