aboutsummaryrefslogtreecommitdiffstats
path: root/test/open-uri
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-01-14 02:06:22 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-01-14 02:06:22 +0000
commitc8a4b57254791e97ba7c082624f47252b71e5f9d (patch)
tree6eb5b4024cda4dc195b293affb0de4f154a95130 /test/open-uri
parentbc388526ba9e919ab8ebd3b1c4758e700ab50e91 (diff)
downloadruby-c8a4b57254791e97ba7c082624f47252b71e5f9d.tar.gz
StringIO.new makes a RW buffer
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57323 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/open-uri')
-rw-r--r--test/open-uri/test_open-uri.rb8
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 49b3e3da06..cc746d0a4d 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(''.dup)
+ proxy_log = StringIO.new
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(''.dup)
+ proxy_log = StringIO.new
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(''.dup)
+ proxy_log = StringIO.new
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(''.dup)
+ proxy_log = StringIO.new
proxy_logger = WEBrick::Log.new(proxy_log, WEBrick::BasicLog::WARN)
proxy_auth_log = ''.dup
proxy = WEBrick::HTTPProxyServer.new({