diff options
-rw-r--r-- | lib/test/unit/collector/dir.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/test/unit/collector/dir.rb b/lib/test/unit/collector/dir.rb index 91561f3d38..448989e5e6 100644 --- a/lib/test/unit/collector/dir.rb +++ b/lib/test/unit/collector/dir.rb @@ -55,7 +55,8 @@ module Test sub_suite = recursive_collect(e_name, already_gathered) sub_suites << sub_suite unless(sub_suite.empty?) else - next unless %r(/test_.*\.rb\Z) =~ e_name + next if %r(/CVS|~\Z|#\.) =~ e_name + next unless /test_/ =~ e_name (next unless(@pattern =~ e_name)) if(@pattern) (next if(@exclude =~ e_name)) if(@exclude) collect_file(e_name, sub_suites, already_gathered) |