summaryrefslogtreecommitdiff
path: root/test/uri/test_http.rb
diff options
context:
space:
mode:
authorhsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-09-30 10:06:24 +0000
committerhsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-09-30 10:06:24 +0000
commit107ba65fba13bdf791e5dae0305c5768e6f7d122 (patch)
treedd3288a693b9f8752d46ffc91d9342133edbac9f /test/uri/test_http.rb
parent377f69e4fef4c9fd11934a19c672606875036a19 (diff)
* 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
Diffstat (limited to 'test/uri/test_http.rb')
-rw-r--r--test/uri/test_http.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/uri/test_http.rb b/test/uri/test_http.rb
index 11259886024..cc19046c8f4 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)