1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* 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
This commit is contained in:
tenderlove 2012-03-02 23:46:17 +00:00
parent cd85cd25b4
commit 1836f44fe9
3 changed files with 32 additions and 16 deletions

View file

@ -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