diff options
Diffstat (limited to 'lib/test/unit')
-rw-r--r-- | lib/test/unit/collector/objectspace.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/test/unit/collector/objectspace.rb b/lib/test/unit/collector/objectspace.rb index 162f1ec4f5..ac79980d7f 100644 --- a/lib/test/unit/collector/objectspace.rb +++ b/lib/test/unit/collector/objectspace.rb @@ -10,6 +10,7 @@ module Test def initialize(source=::ObjectSpace) @source = source + @filters = [] end def collect(name=NAME) @@ -23,7 +24,7 @@ module Test end def include(test) - return true unless(@filters) + return true if(@filters.empty?) @filters.each do |filter| return true if(filter.call(test)) end |