class Test::Unit::TestTestCase::TestTestDefined::TestMethodName::TestDefStyle

Public Instance Methods

test_match() click to toggle source
# File test-unit-3.3.4/test/test-test-case.rb, line 775
def test_match
  test_case = Class.new(TestCase) do
    def test_nothing
    end
  end
  query = {:method_name => "test_nothing"}
  assert_true(test_case.test_defined?(query))
end
test_not_match() click to toggle source
# File test-unit-3.3.4/test/test-test-case.rb, line 784
def test_not_match
  test_case = Class.new(TestCase) do
    def test_nothing
    end
  end
  query = {:method_name => "test_nonexistent"}
  assert_false(test_case.test_defined?(query))
end
test_nothing() click to toggle source
# File test-unit-3.3.4/test/test-test-case.rb, line 777
def test_nothing
end