aboutsummaryrefslogtreecommitdiffstats
path: root/test/uri
diff options
context:
space:
mode:
Diffstat (limited to 'test/uri')
-rw-r--r--test/uri/test_generic.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/uri/test_generic.rb b/test/uri/test_generic.rb
index 2d4603ca44..d22d3c1dd6 100644
--- a/test/uri/test_generic.rb
+++ b/test/uri/test_generic.rb
@@ -736,6 +736,7 @@ class URI::TestGeneric < Test::Unit::TestCase
# 192.0.2.0/24 is TEST-NET. [RFC3330]
def test_find_proxy
+ assert_raise(URI::BadURIError){ URI("foo").find_proxy }
with_env({}) {
assert_nil(URI("http://192.0.2.1/").find_proxy)
assert_nil(URI("ftp://192.0.2.1/").find_proxy)