Merge rubygems master targeted RubyGems 3.1.0.

1172320540

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66904 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
hsbt 2019-01-22 06:28:04 +00:00
parent 59a6215af6
commit 3dc6efbe9c
18 changed files with 105 additions and 78 deletions

View file

@ -79,6 +79,17 @@ class TestGemRequest < Gem::TestCase
assert_equal URI(@proxy_uri), proxy
end
def test_proxy_ENV
ENV['http_proxy'] = "http://proxy"
ENV['https_proxy'] = ""
request = make_request URI('https://example'), nil, nil, nil
proxy = request.proxy_uri
assert_nil proxy
end
def test_configure_connection_for_https
connection = Net::HTTP.new 'localhost', 443