diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/test/unit.rb | 1 |
1 files changed, 1 insertions, 0 deletions
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| |