class Test::Unit::TestTestCase::TestStartupShutdown::TestError::TestLocalName

Public Class Methods

name() click to toggle source
# File test-unit-3.3.4/test/test-test-case.rb, line 1243
def name
  "TestCase"
end

Public Instance Methods

test_data() click to toggle source
# File test-unit-3.3.4/test/test-test-case.rb, line 1257
def test_data
  test_case = Class.new(TestCase) do
    class << self
      def name
        "TestCase"
      end
    end

    def test_nothing
    end
  end

  test = test_case.new("test_nothing")
  test.assign_test_data("(nil)", nil)
  assert_equal("test_nothing[(nil)]",
               test.local_name)
end
test_no_data() click to toggle source
# File test-unit-3.3.4/test/test-test-case.rb, line 1240
def test_no_data
  test_case = Class.new(TestCase) do
    class << self
      def name
        "TestCase"
      end
    end

    def test_nothing
    end
  end

  test = test_case.new("test_nothing")
  assert_equal("test_nothing",
               test.local_name)
end
test_nothing() click to toggle source
# File test-unit-3.3.4/test/test-test-case.rb, line 1248
def test_nothing
end