diff options
Diffstat (limited to 'lib/test/unit/collector/dir.rb')
-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 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 !@pattern.empty? next unless @pattern.any? {|pat| pat =~ e_name} end |