Class: Test::Unit::Collector::Descendant

Inherits:
Object
  • Object
show all
Includes:
Test::Unit::Collector
Defined in:
lib/test/unit/collector/descendant.rb

Constant Summary collapse

NAME =
'collected from the subclasses of TestCase'

Instance Method Summary collapse

Methods included from Test::Unit::Collector

#add_suite, #add_test_cases, #filter=, #include?, #initialize, #sort

Instance Method Details

#collect(name = NAME) ⇒ Object



11
12
13
14
15
# File 'lib/test/unit/collector/descendant.rb', line 11

def collect(name=NAME)
  suite = TestSuite.new(name)
  add_test_cases(suite, TestCase::DESCENDANTS)
  suite
end