From b595ebdb5b6c41e0508eb802abb311972cd4ed40 Mon Sep 17 00:00:00 2001 From: usa Date: Tue, 16 Dec 2008 13:43:34 +0000 Subject: * lib/test/unit.rb (Test::Unit.setup_argv): sorry, fixed wrong commit. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20799 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/test/unit.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/test') diff --git a/lib/test/unit.rb b/lib/test/unit.rb index 7362beb88..729ddf6ad 100644 --- a/lib/test/unit.rb +++ b/lib/test/unit.rb @@ -32,7 +32,7 @@ module Test end files.map! {|f| - f.gsub!(/#{File::ALT_SEPARATOR}/o, File::SEPARATOR) if File::ALT_SEPARATOR + f = f.gsub(Regexp.compile(Regexp.quote(File::ALT_SEPARATOR)), File::SEPARATOR) if File::ALT_SEPARATOR if File.directory? f Dir["#{f}/**/test_*.rb"] elsif File.file? f -- cgit