class Test::Unit::TestTestCase::TestTestDefined::TestNoQuery

Public Instance Methods

test_have_def_style_test() click to toggle source
# File test-unit-3.3.4/test/test-test-case.rb, line 577
def test_have_def_style_test
  test_case = Class.new(TestCase) do
    def test_nothing
    end
  end
  assert_true(test_case.test_defined?({}))
end
test_have_method_style_test() click to toggle source
# File test-unit-3.3.4/test/test-test-case.rb, line 585
def test_have_method_style_test
  test_case = Class.new(TestCase) do
    test "nothing" do
    end
  end
  assert_true(test_case.test_defined?({}))
end
test_no_test() click to toggle source
# File test-unit-3.3.4/test/test-test-case.rb, line 571
def test_no_test
  test_case = Class.new(TestCase) do
  end
  assert_false(test_case.test_defined?({}))
end
test_nothing() click to toggle source
# File test-unit-3.3.4/test/test-test-case.rb, line 579
def test_nothing
end