From 1a222cd3571c5c44915971aa8c68372fde475a1f Mon Sep 17 00:00:00 2001 From: nobu Date: Sat, 13 Feb 2016 02:00:54 +0000 Subject: 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 --- test/uri/test_generic.rb | 4 ++++ 1 file changed, 4 insertions(+) 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 -- cgit v1.2.3