From 107ba65fba13bdf791e5dae0305c5768e6f7d122 Mon Sep 17 00:00:00 2001 From: hsbt Date: Fri, 30 Sep 2016 10:06:24 +0000 Subject: * lib/uri/http.rb: Documentation and code style imrovements. * test/uri/test_http.rb: Added test for coverage. [fix GH-1427][ruby-core:77255][Misc #12756] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56298 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/uri/test_http.rb | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'test/uri') diff --git a/test/uri/test_http.rb b/test/uri/test_http.rb index 1125988602..cc19046c8f 100644 --- a/test/uri/test_http.rb +++ b/test/uri/test_http.rb @@ -16,6 +16,11 @@ class TestHTTP < Test::Unit::TestCase uri.class.component.collect {|c| uri.send(c)} end + def test_build + u = URI::HTTP.build(host: 'www.example.com', path: '/foo/bar') + assert_kind_of(URI::HTTP, u) + end + def test_parse u = URI.parse('http://a') assert_kind_of(URI::HTTP, u) -- cgit v1.2.3