diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-02-13 02:00:54 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-02-13 02:00:54 +0000 |
commit | 1a222cd3571c5c44915971aa8c68372fde475a1f (patch) | |
tree | 5604b419693235729fc6b1b54e98686c61d82610 /test | |
parent | 434fc4c8a0db806ec0ea2586d12610081e067fd1 (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
Diffstat (limited to 'test')
-rw-r--r-- | test/uri/test_generic.rb | 4 |
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 |