class Test::Unit::TestTestSuiteCreator::TestInheritedModule

Public Instance Methods

setup() click to toggle source
# File test-unit-3.3.4/test/test-test-suite-creator.rb, line 64
def setup
  parent_test_module = Module.new do
    def test_in_module_in_parent
    end
  end

  child_test_module = Module.new do
    def test_in_module_in_child
    end
  end

  @parent_test_case = Class.new(TestCase) do
    include parent_test_module

    def test_in_parent
    end
  end

  @child_test_case = Class.new(@parent_test_case) do
    include child_test_module

    def test_in_child
    end
  end
end
test_collect_test_names() click to toggle source
# File test-unit-3.3.4/test/test-test-suite-creator.rb, line 90
def test_collect_test_names
  assert_equal(["test_in_child", "test_in_module_in_child"].sort,
               collect_test_names(@child_test_case).sort)
end
test_in_child() click to toggle source
# File test-unit-3.3.4/test/test-test-suite-creator.rb, line 85
def test_in_child
end
test_in_module_in_child() click to toggle source
# File test-unit-3.3.4/test/test-test-suite-creator.rb, line 71
def test_in_module_in_child
end
test_in_module_in_parent() click to toggle source
# File test-unit-3.3.4/test/test-test-suite-creator.rb, line 66
def test_in_module_in_parent
end
test_in_parent() click to toggle source
# File test-unit-3.3.4/test/test-test-suite-creator.rb, line 78
def test_in_parent
end