diff options
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | lib/test/unit/collector/dir.rb | 3 |
2 files changed, 5 insertions, 2 deletions
@@ -1,3 +1,7 @@ +Mon Jun 30 22:30:37 2008 Nobuyoshi Nakada <[email protected]> + + * lib/test/unit/collector/dir.rb (recursive_collect): r15662 reverted. + Mon Jun 30 22:27:39 2008 Yusuke Endoh <[email protected]> * ext/stringio/stringio.c (strio_getline): fix for nil and "" as diff --git a/lib/test/unit/collector/dir.rb b/lib/test/unit/collector/dir.rb index 365345430f..154c402a25 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 [email protected]? next unless @pattern.any? {|pat| pat =~ e_name} end |