summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--lib/test/unit/collector/dir.rb3
2 files changed, 5 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index c612a9e377..566c33c5f6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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