summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/uri/test_generic.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/uri/test_generic.rb b/test/uri/test_generic.rb
index a427809daf..b759657f23 100644
--- a/test/uri/test_generic.rb
+++ b/test/uri/test_generic.rb
@@ -827,6 +827,10 @@ class URI::TestGeneric < Test::Unit::TestCase
assert_nil(URI("http://192.0.2.1/").find_proxy)
assert_nil(URI("ftp://192.0.2.1/").find_proxy)
}
+ with_env('http_proxy'=>'http://127.0.0.1:8080', 'no_proxy'=>'example.net') {
+ assert_nil(URI("http://example.net/").find_proxy)
+ assert_nil(URI("http://www.example.net/").find_proxy)
+ }
end
def test_find_proxy_case_sensitive_env