summaryrefslogtreecommitdiff
path: root/test/webrick
diff options
context:
space:
mode:
authorHiroshi SHIBATA <hsbt@ruby-lang.org>2019-08-08 17:19:23 +0900
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2019-08-08 17:19:23 +0900
commitb39efb163dd97a6b2c92cac3d2b1c19f898d0c04 (patch)
treea713be83c67c47c0f31a3601d640210c34f10fc5 /test/webrick
parent1ad0f4e593563d460e3015fc4a2542ce1bb80d6e (diff)
downloadruby-b39efb163dd97a6b2c92cac3d2b1c19f898d0c04.tar.gz
Aliases capture_output to capture_io for test-unit compatiblity.
Diffstat (limited to 'test/webrick')
-rw-r--r--test/webrick/utils.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/webrick/utils.rb b/test/webrick/utils.rb
index cc231f07e8..ca9c56aca2 100644
--- a/test/webrick/utils.rb
+++ b/test/webrick/utils.rb
@@ -45,7 +45,7 @@ module TestWEBrick
:Logger => WEBrick::Log.new(log_ary, WEBrick::BasicLog::WARN),
:AccessLog => [[access_log_ary, ""]]
}.update(config))
- server = capture_io {break klass.new(config)}
+ server = capture_output {break klass.new(config)}
server_thread = server.start
server_thread2 = Thread.new {
server_thread.join