class TestUnitOmission

Public Instance Methods

test_omit() click to toggle source
# File test-unit-3.3.4/test/test-omission.rb, line 45
def test_omit
  result = _run_test("test_omit")
  assert_equal("1 tests, 0 assertions, 0 failures, 0 errors, 0 pendings, " \
               "1 omissions, 0 notifications",
               result.to_s)
  assert_fault_messages(["1st omit"], result.omissions)
end
test_omit_with_block() click to toggle source
# File test-unit-3.3.4/test/test-omission.rb, line 61
def test_omit_with_block
  result = _run_test("test_omit_with_block")
  assert_equal("1 tests, 1 assertions, 0 failures, 0 errors, 0 pendings, " \
               "1 omissions, 0 notifications",
               result.to_s)
  assert_fault_messages(["Omit block"], result.omissions)
end
test_omit_with_condition() click to toggle source
# File test-unit-3.3.4/test/test-omission.rb, line 53
def test_omit_with_condition
  result = _run_test("test_omit_with_condition")
  assert_equal("1 tests, 0 assertions, 0 failures, 0 errors, 0 pendings, " \
               "1 omissions, 0 notifications",
               result.to_s)
  assert_fault_messages(["Should omit."], result.omissions)
end
test_omit_with_condition_and_block() click to toggle source
# File test-unit-3.3.4/test/test-omission.rb, line 69
def test_omit_with_condition_and_block
  result = _run_test("test_omit_with_block_and_condition")
  assert_equal("1 tests, 2 assertions, 0 failures, 0 errors, 0 pendings, " \
               "1 omissions, 0 notifications",
               result.to_s)
  assert_fault_messages(["Should omit."], result.omissions)
end

Private Instance Methods

_run_test(name) click to toggle source
Calls superclass method TestUnitTestUtil#_run_test
# File test-unit-3.3.4/test/test-omission.rb, line 78
def _run_test(name)
  super(TestCase, name)
end