summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-02-13 02:00:54 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-02-13 02:00:54 +0000
commit1a222cd3571c5c44915971aa8c68372fde475a1f (patch)
tree5604b419693235729fc6b1b54e98686c61d82610
parent434fc4c8a0db806ec0ea2586d12610081e067fd1 (diff)
domainname no_proxy assertions
* test/uri/test_generic.rb (test_find_proxy): assertions for no_proxy of domainname. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53813 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-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 a427809..b759657 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