summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/webrick/test_filehandler.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/webrick/test_filehandler.rb b/test/webrick/test_filehandler.rb
index cc27b34763..68c2c28d5a 100644
--- a/test/webrick/test_filehandler.rb
+++ b/test/webrick/test_filehandler.rb
@@ -219,7 +219,7 @@ class WEBrick::TestFileHandler < Test::Unit::TestCase
if windows?
fname = nil
Dir.chdir(config[:DocumentRoot]) do
- fname = IO.popen("dir /x webrick_long_filename.cgi", "r").read.match(/\s(w.+?cgi)\s/i)[1].downcase
+ fname = `dir /x webrick_long_filename.cgi`.match(/\s(w.+?cgi)\s/i)[1].downcase
end
else
fname = "webric~1.cgi"