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
postfinancecheckout-ruby-sdk-4.5.0 vendor/bundle/ruby/3.3.0/gems/test-unit-3.3.9/test/ui/test_testrunmediator.rb
wallee-ruby-sdk-4.5.0 vendor/bundle/ruby/3.3.0/gems/test-unit-3.3.9/test/ui/test_testrunmediator.rb
wallee-ruby-sdk-4.4.0 vendor/bundle/ruby/3.1.0/gems/test-unit-3.3.9/test/ui/test_testrunmediator.rb
postfinancecheckout-ruby-sdk-4.4.0 vendor/bundle/ruby/3.1.0/gems/test-unit-3.3.9/test/ui/test_testrunmediator.rb
postfinancecheckout-ruby-sdk-4.2.0 vendor/bundle/ruby/3.0.0/gems/test-unit-3.3.9/test/ui/test_testrunmediator.rb
wallee-ruby-sdk-4.2.0 vendor/bundle/ruby/3.0.0/gems/test-unit-3.3.9/test/ui/test_testrunmediator.rb
postfinancecheckout-ruby-sdk-3.3.0 vendor/bundle/ruby/2.7.0/gems/test-unit-3.2.9/test/ui/test_testrunmediator.rb
wallee-ruby-sdk-3.3.0 vendor/bundle/ruby/2.7.0/gems/test-unit-3.2.9/test/ui/test_testrunmediator.rb
whitelabelmachinename-ruby-sdk-3.2.1 vendor/bundle/ruby/2.4.0/gems/test-unit-3.2.9/test/ui/test_testrunmediator.rb
wallee-ruby-sdk-3.2.0 vendor/bundle/ruby/2.4.0/gems/test-unit-3.2.9/test/ui/test_testrunmediator.rb
postfinancecheckout-ruby-sdk-3.2.0 vendor/bundle/ruby/2.4.0/gems/test-unit-3.2.9/test/ui/test_testrunmediator.rb
wallee-ruby-sdk-3.1.5 vendor/bundle/ruby/2.4.0/gems/test-unit-3.2.9/test/ui/test_testrunmediator.rb
postfinancecheckout-ruby-sdk-3.1.5 vendor/bundle/ruby/2.4.0/gems/test-unit-3.2.9/test/ui/test_testrunmediator.rb
whitelabelmachinename-ruby-sdk-3.2.0 vendor/bundle/ruby/2.4.0/gems/test-unit-3.2.9/test/ui/test_testrunmediator.rb
whitelabelmachinename-ruby-sdk-3.1.9 vendor/bundle/ruby/2.4.0/gems/test-unit-3.2.9/test/ui/test_testrunmediator.rb
whitelabelmachinename-ruby-sdk-3.1.8 vendor/bundle/ruby/2.4.0/gems/test-unit-3.2.9/test/ui/test_testrunmediator.rb
whitelabelmachinename-ruby-sdk-3.1.7 vendor/bundle/ruby/2.4.0/gems/test-unit-3.2.9/test/ui/test_testrunmediator.rb
whitelabelmachinename-ruby-sdk-3.1.6 vendor/bundle/ruby/2.4.0/gems/test-unit-3.2.9/test/ui/test_testrunmediator.rb
whitelabelmachinename-ruby-sdk-3.1.5 vendor/bundle/ruby/2.4.0/gems/test-unit-3.2.9/test/ui/test_testrunmediator.rb
postfinancecheckout-ruby-sdk-3.1.4 vendor/bundle/ruby/2.4.0/gems/test-unit-3.2.9/test/ui/test_testrunmediator.rb