class Test::Unit::TestTestCase::TestSubTestCase
Public Instance Methods
test_duplicated_name()
click to toggle source
# File test-unit-3.3.4/test/test-test-case.rb, line 922 def test_duplicated_name test_case = Class.new(TestCase) do def test_nothing end end sub_test_case = test_case.sub_test_case("sub test case") do def test_nothing end end test_method_names = test_case.suite.tests.collect do |test| test.method_name end sub_test_method_names = sub_test_case.suite.tests.collect do |test| test.method_name end assert_equal([ ["test_nothing"], ["test_nothing"], ], [ test_method_names, sub_test_method_names, ]) end
test_nothing()
click to toggle source
# File test-unit-3.3.4/test/test-test-case.rb, line 913 def test_nothing end
test_suite()
click to toggle source
# File test-unit-3.3.4/test/test-test-case.rb, line 910 def test_suite test_case = Class.new(TestCase) sub_test_case = test_case.sub_test_case("sub test case") do def test_nothing end end test_method_names = sub_test_case.suite.tests.collect do |test| test.method_name end assert_equal(["test_nothing"], test_method_names) end