diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-02-12 00:30:13 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-02-12 00:30:13 +0000 |
commit | 58ed5a45ff8f0bf0eeea10e3d0f3abfc649e7e2b (patch) | |
tree | 0eafe933899aea74b117a845e8b17c2bd88f0b75 | |
parent | 7dea05dc6f5a5c692d226f42f0ca320c68eff894 (diff) |
* lib/test/unit.rb (Test::Unit::GlobOption#non_options): run tests
under base directory if no argument given.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30848 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | lib/test/unit.rb | 1 |
2 files changed, 6 insertions, 0 deletions
@@ -1,3 +1,8 @@ +Sat Feb 12 09:30:00 2011 Nobuyoshi Nakada <[email protected]> + + * 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 <[email protected]> * test/ruby/test_settracefunc.rb (TestSetTraceFunc): ensure to use diff --git a/lib/test/unit.rb b/lib/test/unit.rb index 25ff6cc980..c0bb7736e3 100644 --- a/lib/test/unit.rb +++ b/lib/test/unit.rb @@ -100,6 +100,7 @@ module Test 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| |