diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-01-14 09:38:56 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-01-14 09:38:56 +0000 |
commit | 3408e9e3c30115e16fb482ac29f147fb64953ebd (patch) | |
tree | 7b97b87e1c275626b256ce2850acf5825c3b0bc2 /test/open-uri/test_open-uri.rb | |
parent | c850c4ad37573037a6c202acbd50150b48c356c8 (diff) | |
download | ruby-3408e9e3c30115e16fb482ac29f147fb64953ebd.tar.gz |
revert r57323
StringIO.new makes the buffer IO.default_external, while
StringIO.new("".dup) makes source encoding which is defaulted to
UTF-8.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57328 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/open-uri/test_open-uri.rb')
-rw-r--r-- | test/open-uri/test_open-uri.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/open-uri/test_open-uri.rb b/test/open-uri/test_open-uri.rb index cc746d0a4d..49b3e3da06 100644 --- a/test/open-uri/test_open-uri.rb +++ b/test/open-uri/test_open-uri.rb @@ -246,7 +246,7 @@ class TestOpenURI < Test::Unit::TestCase def test_proxy with_http {|srv, dr, url| - proxy_log = StringIO.new + proxy_log = StringIO.new(''.dup) proxy_logger = WEBrick::Log.new(proxy_log, WEBrick::BasicLog::WARN) proxy_auth_log = ''.dup proxy = WEBrick::HTTPProxyServer.new({ @@ -300,7 +300,7 @@ class TestOpenURI < Test::Unit::TestCase def test_proxy_http_basic_authentication_failure with_http {|srv, dr, url| - proxy_log = StringIO.new + proxy_log = StringIO.new(''.dup) proxy_logger = WEBrick::Log.new(proxy_log, WEBrick::BasicLog::WARN) proxy_auth_log = ''.dup proxy = WEBrick::HTTPProxyServer.new({ @@ -333,7 +333,7 @@ class TestOpenURI < Test::Unit::TestCase def test_proxy_http_basic_authentication_success with_http {|srv, dr, url| - proxy_log = StringIO.new + proxy_log = StringIO.new(''.dup) proxy_logger = WEBrick::Log.new(proxy_log, WEBrick::BasicLog::WARN) proxy_auth_log = ''.dup proxy = WEBrick::HTTPProxyServer.new({ @@ -374,7 +374,7 @@ class TestOpenURI < Test::Unit::TestCase def test_authenticated_proxy_http_basic_authentication_success with_http {|srv, dr, url| - proxy_log = StringIO.new + proxy_log = StringIO.new(''.dup) proxy_logger = WEBrick::Log.new(proxy_log, WEBrick::BasicLog::WARN) proxy_auth_log = ''.dup proxy = WEBrick::HTTPProxyServer.new({ |