summaryrefslogtreecommitdiff
path: root/test/uri/test_parser.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/uri/test_parser.rb')
-rw-r--r--test/uri/test_parser.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/uri/test_parser.rb b/test/uri/test_parser.rb
index adf8a1292c..188b4f858c 100644
--- a/test/uri/test_parser.rb
+++ b/test/uri/test_parser.rb
@@ -38,4 +38,10 @@ class URI::TestParser < Test::Unit::TestCase
assert_equal(['http', nil, 'a', URI::HTTP.default_port, '/%uDCBA', nil, nil],
uri_to_ary(u1))
end
+
+ def test_raise_bad_uri_for_integer
+ assert_raise(URI::InvalidURIError) do
+ URI.parse(1)
+ end
+ end
end