class TestUnitCollectorDescendant

Public Instance Methods

setup() click to toggle source
# File test-unit-3.3.4/test/collector/test-descendant.rb, line 5
def setup
  @previous_descendants = Test::Unit::TestCase::DESCENDANTS.dup
  Test::Unit::TestCase::DESCENDANTS.clear
end
teardown() click to toggle source
# File test-unit-3.3.4/test/collector/test-descendant.rb, line 10
def teardown
  Test::Unit::TestCase::DESCENDANTS.replace(@previous_descendants)
end