diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-06-11 10:04:19 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-06-11 10:04:19 +0000 |
commit | 95e42dc1526405e7c7310e39d0c369e9d436a7b9 (patch) | |
tree | 8d3c6ad164fbc85f3a8135f0df2067582c061bdf /lib/test/unit.rb | |
parent | 10bf738beeba506565c0486a29fc063c421c1d36 (diff) | |
download | ruby-95e42dc1526405e7c7310e39d0c369e9d436a7b9.tar.gz |
* lib/test/unit.rb (Test::Unit::GlobOption#non_options): should run
with 1.8.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32002 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/test/unit.rb')
-rw-r--r-- | lib/test/unit.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/test/unit.rb b/lib/test/unit.rb index 478395d8cc..186545152d 100644 --- a/lib/test/unit.rb +++ b/lib/test/unit.rb @@ -143,7 +143,7 @@ module Test end 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| + ((paths if /\A\.\.?(?:\z|\/)/ !~ f) | [nil]).any? do |prefix| if prefix path = f.empty? ? prefix : "#{prefix}/#{f}" else |