aboutsummaryrefslogtreecommitdiffstats
path: root/test/uri
diff options
context:
space:
mode:
Diffstat (limited to 'test/uri')
-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 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)