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
win32-api-1.9.2 vendor/bundle/ruby/2.5.0/gems/test-unit-3.3.5/test/ui/test_testrunmediator.rb
win32-api-1.9.2 vendor/bundle/ruby/2.5.0/gems/test-unit-3.3.4/test/ui/test_testrunmediator.rb
win32-api-1.9.2 vendor/bundle/ruby/2.7.0/gems/test-unit-3.3.5/test/ui/test_testrunmediator.rb
win32-api-1.9.1 vendor/bundle/ruby/2.5.0/gems/test-unit-3.3.4/test/ui/test_testrunmediator.rb
win32-api-1.9.1 vendor/bundle/ruby/2.5.0/gems/test-unit-3.3.5/test/ui/test_testrunmediator.rb
win32-api-1.9.1 vendor/bundle/ruby/2.7.0/gems/test-unit-3.3.5/test/ui/test_testrunmediator.rb
tdiary-5.1.3 vendor/bundle/ruby/2.7.0/gems/test-unit-3.3.6/test/ui/test_testrunmediator.rb
tdiary-5.1.3 vendor/bundle/ruby/2.6.0/gems/test-unit-3.3.5/test/ui/test_testrunmediator.rb
test-unit-3.3.6 test/ui/test_testrunmediator.rb
tdiary-5.1.2 vendor/bundle/ruby/2.7.0/gems/test-unit-3.3.5/test/ui/test_testrunmediator.rb
tdiary-5.1.2 vendor/bundle/ruby/2.6.0/gems/test-unit-3.3.4/test/ui/test_testrunmediator.rb
tdiary-5.1.1 vendor/bundle/ruby/2.6.0/gems/test-unit-3.3.4/test/ui/test_testrunmediator.rb
tdiary-5.1.1 vendor/bundle/ruby/2.7.0/gems/test-unit-3.3.5/test/ui/test_testrunmediator.rb
test-unit-3.3.5 test/ui/test_testrunmediator.rb
tdiary-5.1.0 vendor/bundle/gems/test-unit-3.3.4/test/ui/test_testrunmediator.rb
test-unit-3.3.4 test/ui/test_testrunmediator.rb
test-unit-3.3.3 test/ui/test_testrunmediator.rb
test-unit-3.3.2 test/ui/test_testrunmediator.rb
tdiary-5.0.13 vendor/bundle/gems/test-unit-3.3.1/test/ui/test_testrunmediator.rb
tdiary-5.0.12.1 vendor/bundle/gems/test-unit-3.3.1/test/ui/test_testrunmediator.rb