1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* test/open-uri/test_open-uri.rb (test_find_proxy_case_sensitive_env):

environment variable name is not case sensitive on Windows


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28021 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
usa 2010-05-26 08:25:15 +00:00
parent 97596f36bc
commit dd32962cba

View file

@ -518,6 +518,7 @@ class TestOpenURI < Test::Unit::TestCase
end end
def test_find_proxy_case_sensitive_env def test_find_proxy_case_sensitive_env
skip "environment variable name is not case sensitive on Windows" if RUBY_PLATFORM =~ /mswin|mingw/
with_env('http_proxy'=>'http://127.0.0.1:8080', 'REQUEST_METHOD'=>'GET') { with_env('http_proxy'=>'http://127.0.0.1:8080', 'REQUEST_METHOD'=>'GET') {
assert_equal(URI('http://127.0.0.1:8080'), URI("http://192.0.2.1/").find_proxy) assert_equal(URI('http://127.0.0.1:8080'), URI("http://192.0.2.1/").find_proxy)
} }