ruby-changes:18823
From: nobu <ko1@a...>
Date: Sat, 12 Feb 2011 09:30:20 +0900 (JST)
Subject: [ruby-changes:18823] Ruby:r30848 (trunk): * lib/test/unit.rb (Test::Unit::GlobOption#non_options): run tests
nobu 2011-02-12 09:30:13 +0900 (Sat, 12 Feb 2011) New Revision: 30848 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=30848 Log: * lib/test/unit.rb (Test::Unit::GlobOption#non_options): run tests under base directory if no argument given. Modified files: trunk/ChangeLog trunk/lib/test/unit.rb Index: ChangeLog =================================================================== --- ChangeLog (revision 30847) +++ ChangeLog (revision 30848) @@ -1,3 +1,8 @@ +Sat Feb 12 09:30:00 2011 Nobuyoshi Nakada <nobu@r...> + + * lib/test/unit.rb (Test::Unit::GlobOption#non_options): run tests + under base directory if no argument given. + Sat Feb 12 08:03:12 2011 Nobuyoshi Nakada <nobu@r...> * test/ruby/test_settracefunc.rb (TestSetTraceFunc): ensure to use Index: lib/test/unit.rb =================================================================== --- lib/test/unit.rb (revision 30847) +++ lib/test/unit.rb (revision 30848) @@ -100,6 +100,7 @@ if reject = options.delete(:reject) reject_pat = Regexp.union(reject.map {|r| /#{r}/ }) end + files << "" if files.empty? files.map! {|f| f = f.tr(File::ALT_SEPARATOR, File::SEPARATOR) if File::ALT_SEPARATOR [*(paths if /\A\.\.?(?:\z|\/)/ !~ f), nil].uniq.any? do |prefix| -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/