mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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
This commit is contained in:
parent
dec78a7a73
commit
f3d087c77b
1 changed files with 11 additions and 0 deletions
|
@ -96,6 +96,17 @@ class TestNetHTTP < Test::Unit::TestCase
|
||||||
end
|
end
|
||||||
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
|
def test_proxy_address_ENV
|
||||||
clean_http_proxy_env do
|
clean_http_proxy_env do
|
||||||
ENV['http_proxy'] = 'http://proxy.example:8000'
|
ENV['http_proxy'] = 'http://proxy.example:8000'
|
||||||
|
|
Loading…
Add table
Reference in a new issue