class Test::Unit::TestTestCase::TestSubTestCase::TestName

Public Instance Methods

test_anonymous() click to toggle source
# File test-unit-3.3.4/test/test-test-case.rb, line 892
def test_anonymous
  test_case = Class.new(TestCase)
  sub_test_case = test_case.sub_test_case("sub test case") do
  end
  assert_equal("sub test case", sub_test_case.name)
end
test_named() click to toggle source
# File test-unit-3.3.4/test/test-test-case.rb, line 899
def test_named
  test_case = Class.new(TestCase)
  def test_case.name
    "ParentTestCase"
  end
  sub_test_case = test_case.sub_test_case("sub test case") do
  end
  assert_equal("ParentTestCase::sub test case", sub_test_case.name)
end