ruby-changes:40934
From: naruse <ko1@a...>
Date: Thu, 10 Dec 2015 04:42:17 +0900 (JST)
Subject: [ruby-changes:40934] naruse:r53013 (trunk): add tests for El Capitan failure
naruse 2015-12-10 04:41:47 +0900 (Thu, 10 Dec 2015) New Revision: 53013 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=53013 Log: add tests for El Capitan failure http://rubyci.s3.amazonaws.com/osx1011/ruby-trunk/log/20151209T174501Z.fail.html.gz Modified files: trunk/test/net/http/test_http.rb Index: test/net/http/test_http.rb =================================================================== --- test/net/http/test_http.rb (revision 53012) +++ test/net/http/test_http.rb (revision 53013) @@ -96,6 +96,17 @@ class TestNetHTTP < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/net/http/test_http.rb#L96 end end + def test_proxy_from_env_ENV + clean_http_proxy_env do + ENV['http_proxy'] = 'http://proxy.example:8000' + + assert_equal false, Net::HTTP.proxy_class? + http = Net::HTTP.new 'example' + + assert_equal true, http.proxy_from_env? + end + end + def test_proxy_address_ENV clean_http_proxy_env do ENV['http_proxy'] = 'http://proxy.example:8000' -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/