Sha256: 9e1bcd323d2919463d1499409643e0f03989d02092b741e92942772fd6197db0

Contents?: true

Size: 560 Bytes

Versions: 150

Compression:

Stored size: 560 Bytes

Contents

require 'test/unit/ui/testrunnermediator'

class TestUnitUIMediator < Test::Unit::TestCase
  def test_run_suite_with_interrupt_exception
    test_case = Class.new(Test::Unit::TestCase) do
      def test_raise_interrupt
        raise Interrupt, "from test"
      end
    end
    mediator = Test::Unit::UI::TestRunnerMediator.new(test_case.suite)
    finished = false
    mediator.add_listener(Test::Unit::UI::TestRunnerMediator::FINISHED) do
      finished = true
    end
    assert_raise(Interrupt) do
      mediator.run
    end
    assert(finished)
  end
end

Version data entries

150 entries across 114 versions & 12 rubygems

Version Path
tdiary-5.1.6 vendor/bundle/ruby/2.7.0/gems/test-unit-3.4.0/test/ui/test_testrunmediator.rb
tdiary-5.1.6 vendor/bundle/ruby/3.0.0/gems/test-unit-3.4.1/test/ui/test_testrunmediator.rb
win32-api-1.10.1 vendor/bundle/ruby/3.0.0/gems/test-unit-3.4.1/test/ui/test_testrunmediator.rb
win32-api-1.10.1 vendor/bundle/ruby/2.7.0/gems/test-unit-3.3.5/test/ui/test_testrunmediator.rb
win32-api-1.10.1 vendor/bundle/ruby/2.5.0/gems/test-unit-3.3.5/test/ui/test_testrunmediator.rb
win32-api-1.10.1 vendor/bundle/ruby/2.5.0/gems/test-unit-3.3.4/test/ui/test_testrunmediator.rb
test-unit-3.4.1 test/ui/test_testrunmediator.rb
win32-api-1.10.0 vendor/bundle/ruby/2.7.0/gems/test-unit-3.3.5/test/ui/test_testrunmediator.rb
win32-api-1.10.0 vendor/bundle/ruby/2.5.0/gems/test-unit-3.3.5/test/ui/test_testrunmediator.rb
win32-api-1.10.0 vendor/bundle/ruby/2.5.0/gems/test-unit-3.3.4/test/ui/test_testrunmediator.rb
tdiary-5.1.5 vendor/bundle/ruby/3.0.0/gems/test-unit-3.3.8/test/ui/test_testrunmediator.rb
tdiary-5.1.5 vendor/bundle/ruby/2.7.0/gems/test-unit-3.4.0/test/ui/test_testrunmediator.rb
tdiary-5.1.5 vendor/bundle/ruby/3.0.0/gems/test-unit-3.4.0/test/ui/test_testrunmediator.rb
tdiary-5.1.5 vendor/bundle/ruby/3.0.0/gems/tdiary-5.1.4/vendor/bundle/ruby/2.7.0/gems/test-unit-3.3.7/test/ui/test_testrunmediator.rb
tdiary-5.1.5 vendor/bundle/ruby/3.0.0/gems/test-unit-3.3.7/test/ui/test_testrunmediator.rb
test-unit-3.4.0 test/ui/test_testrunmediator.rb
test-unit-3.3.9 test/ui/test_testrunmediator.rb
test-unit-3.3.8 test/ui/test_testrunmediator.rb
tdiary-5.1.4 vendor/bundle/ruby/2.7.0/gems/test-unit-3.3.7/test/ui/test_testrunmediator.rb
test-unit-3.3.7 test/ui/test_testrunmediator.rb