mirror of
https://github.com/ruby/ruby.git
synced 2025-08-23 21:14:23 +02:00
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:
parent
59a6215af6
commit
3dc6efbe9c
18 changed files with 105 additions and 78 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue