Sha256: c60cf5ac79ecd624c0c11aa66b28842bc72e1354aa7706c655005b2435446603
Contents?: true
Size: 765 Bytes
Versions: 12
Compression:
Stored size: 765 Bytes
Contents
require 'test/unit' require 'testunit_test_util' class TestNotification < Test::Unit::TestCase include TestUnitTestUtil class TestCase < Test::Unit::TestCase class << self def suite Test::Unit::TestSuite.new(name) end end def test_notify notify("1st notify") notify("2nd notify. Reach here.") end end def test_notify result = _run_test("test_notify") assert_equal("1 tests, 0 assertions, 0 failures, 0 errors, 0 pendings, " \ "0 omissions, 2 notifications", result.to_s) assert_fault_messages(["1st notify", "2nd notify. Reach here."], result.notifications) end private def _run_test(name) super(TestCase, name) end end
Version data entries
12 entries across 12 versions & 1 rubygems