Sha256: 69568cf03c1875ea87167252083fe58b6ce06504e3d550de0ba735148ef8f81e

Contents?: true

Size: 427 Bytes

Versions: 36

Compression:

Stored size: 427 Bytes

Contents

# frozen_string_literal: true

RSpec.describe Deimos::Utils::SignalHandler do
  describe '#run!' do

    it 'starts and stops the runner' do
      runner = TestRunners::TestRunner.new
      expect(runner).to receive(:start)
      expect(runner).to receive(:stop)

      signal_handler = described_class.new(runner)
      signal_handler.send(:unblock, described_class::SIGNALS.first)
      signal_handler.run!
    end
  end
end

Version data entries

36 entries across 36 versions & 2 rubygems

Version Path
deimos-ruby-1.7.0.pre.beta1 spec/utils/signal_handler_spec.rb
deimos-ruby-1.6.4 spec/utils/signal_handler_spec.rb
deimos-ruby-1.6.3 spec/utils/signal_handler_spec.rb
deimos-ruby-1.6.2 spec/utils/signal_handler_spec.rb
deimos-ruby-1.6.1 spec/utils/signal_handler_spec.rb
deimos-ruby-1.6.0 spec/utils/signal_handler_spec.rb
deimos-ruby-1.6.0.pre.beta1 spec/utils/signal_handler_spec.rb
deimos-ruby-1.5.0.pre.beta2 spec/utils/signal_handler_spec.rb
deimos-ruby-1.3.0.pre.beta5 spec/utils/signal_handler_spec.rb
deimos-ruby-1.4.0.pre.beta7 spec/utils/signal_handler_spec.rb
deimos-ruby-1.4.0.pre.beta6 spec/utils/signal_handler_spec.rb
deimos-ruby-1.4.0.pre.beta5 spec/utils/signal_handler_spec.rb
deimos-ruby-1.3.0.pre.beta4 spec/utils/signal_handler_spec.rb
deimos-ruby-1.4.0.pre.beta4 spec/utils/signal_handler_spec.rb
deimos-ruby-1.4.0.pre.beta3 spec/utils/signal_handler_spec.rb
deimos-ruby-1.3.0.pre.beta3 spec/utils/signal_handler_spec.rb
deimos-ruby-1.4.0.pre.beta2 spec/utils/signal_handler_spec.rb
deimos-ruby-1.4.0.pre.beta1 spec/utils/signal_handler_spec.rb
deimos-ruby-1.3.0.pre.beta2 spec/utils/signal_handler_spec.rb
deimos-ruby-1.3.0.pre.beta1 spec/utils/signal_handler_spec.rb