summaryrefslogtreecommitdiff
path: root/test/net
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-12-09 19:41:47 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-12-09 19:41:47 +0000
commitf3d087c77bc592075c7dec752c3f40c7da7b58a8 (patch)
tree8eaafc72e0c02dac0db7663a6d80c61f96454cdb /test/net
parentdec78a7a732a2a4c494482fa3061b794e997269b (diff)
add tests for El Capitan failure
http://rubyci.s3.amazonaws.com/osx1011/ruby-trunk/log/20151209T174501Z.fail.html.gz git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53013 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/net')
-rw-r--r--test/net/http/test_http.rb11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/net/http/test_http.rb b/test/net/http/test_http.rb
index 052c3ef..7d960a7 100644
--- a/test/net/http/test_http.rb
+++ b/test/net/http/test_http.rb
@@ -96,6 +96,17 @@ class TestNetHTTP < Test::Unit::TestCase
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'