diff options
| author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-06-30 13:30:39 +0000 |
|---|---|---|
| committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-06-30 13:30:39 +0000 |
| commit | 272329da74646b10eef5785361db46579e6cbae2 (patch) | |
| tree | 39139c14b2830b8400631a7ef4893f4fc116000f /lib | |
| parent | e7f7ec8e0531a6168339bf1458d8b456992cff33 (diff) | |
| download | ruby-272329da74646b10eef5785361db46579e6cbae2.tar.gz ruby-272329da74646b10eef5785361db46579e6cbae2.tar.xz ruby-272329da74646b10eef5785361db46579e6cbae2.zip | |
* lib/test/unit/collector/dir.rb (recursive_collect): r15662 reverted.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@17740 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/test/unit/collector/dir.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/test/unit/collector/dir.rb b/lib/test/unit/collector/dir.rb index 365345430..154c402a2 100644 --- a/lib/test/unit/collector/dir.rb +++ b/lib/test/unit/collector/dir.rb @@ -16,7 +16,7 @@ module Test @file = file @object_space = object_space @req = req - @pattern = [] + @pattern = [/\btest_.*\.rb\Z/m] @exclude = [] end @@ -64,7 +64,6 @@ module Test sub_suites << sub_suite unless(sub_suite.empty?) else next if /~\z/ =~ e_name or /\A\.\#/ =~ e - next unless /\Atest_.*\.rb\z/m =~ e if @pattern and !@pattern.empty? next unless @pattern.any? {|pat| pat =~ e_name} end |
