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.2.0.pre.beta1 spec/utils/signal_handler_spec.rb
deimos-ruby-1.1.0.pre.beta2 spec/utils/signal_handler_spec.rb
deimos-ruby-1.1.0.pre.beta1 spec/utils/signal_handler_spec.rb
deimos-ruby-1.0.0 spec/utils/signal_handler_spec.rb
deimos-ruby-1.0.0.pre.beta26 spec/utils/signal_handler_spec.rb
deimos-ruby-1.0.0.pre.beta25 spec/utils/signal_handler_spec.rb
deimos-ruby-1.0.0.pre.beta24 spec/utils/signal_handler_spec.rb
deimos-ruby-1.0.0.pre.beta23 spec/utils/signal_handler_spec.rb
deimos-ruby-1.0.0.pre.beta22 spec/utils/signal_handler_spec.rb
deimos-kafka-1.0.0.pre.beta21 spec/utils/signal_handler_spec.rb
deimos-kafka-1.0.0.pre.beta20 spec/utils/signal_handler_spec.rb
deimos-kafka-1.0.0.pre.beta19 spec/utils/signal_handler_spec.rb
deimos-kafka-1.0.0.pre.beta18 spec/utils/signal_handler_spec.rb
deimos-kafka-1.0.0.pre.beta17 spec/utils/signal_handler_spec.rb
deimos-kafka-1.0.0.pre.beta16 spec/utils/signal_handler_spec.rb
deimos-kafka-1.0.0.pre.beta15 spec/utils/signal_handler_spec.rb