[前][次][番号順一覧][スレッド一覧]

ruby-changes:41740

From: nobu <ko1@a...>
Date: Sat, 13 Feb 2016 11:00:40 +0900 (JST)
Subject: [ruby-changes:41740] nobu:r53813 (trunk): domainname no_proxy assertions

nobu	2016-02-13 11:00:54 +0900 (Sat, 13 Feb 2016)

  New Revision: 53813

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=53813

  Log:
    domainname no_proxy assertions
    
    * test/uri/test_generic.rb (test_find_proxy): assertions for
      no_proxy of domainname.

  Modified files:
    trunk/test/uri/test_generic.rb
Index: test/uri/test_generic.rb
===================================================================
--- test/uri/test_generic.rb	(revision 53812)
+++ test/uri/test_generic.rb	(revision 53813)
@@ -827,6 +827,10 @@ class URI::TestGeneric < Test::Unit::Tes https://github.com/ruby/ruby/blob/trunk/test/uri/test_generic.rb#L827
       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

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]