Sha256: 40c8a3b25b17a28b20fe18e018c3990733a36d8a8748c85026f0ae59307b7acb

Contents?: true

Size: 665 Bytes

Versions: 15

Compression:

Stored size: 665 Bytes

Contents

require 'spec_helper'

describe DispatchRider::Runner do

  describe ".run" do
    let(:subscriber) { double(:subscriber) }

    before :each do
      DispatchRider.configure do |config|
        config.subscriber = subscriber
      end
    end

    after do
      DispatchRider.clear_configuration!
    end

    example do
      expect(subscriber).to receive(:new).once.and_return(subscriber)
      expect(subscriber).to receive(:register_queue).once
      expect(subscriber).to receive(:setup_demultiplexer).once
      expect(subscriber).to receive(:process).once
      allow(subscriber).to receive(:register_handler)

      described_class.run
    end
  end

end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
dispatch-rider-2.1.0 spec/lib/dispatch-rider/runner_spec.rb
dispatch-rider-2.0.0 spec/lib/dispatch-rider/runner_spec.rb
dispatch-rider-1.9.0 spec/lib/dispatch-rider/runner_spec.rb
dispatch-rider-1.8.6 spec/lib/dispatch-rider/runner_spec.rb
dispatch-rider-1.8.5 spec/lib/dispatch-rider/runner_spec.rb
dispatch-rider-1.8.4 spec/lib/dispatch-rider/runner_spec.rb
dispatch-rider-1.8.3 spec/lib/dispatch-rider/runner_spec.rb
dispatch-rider-1.8.2 spec/lib/dispatch-rider/runner_spec.rb
dispatch-rider-1.8.1 spec/lib/dispatch-rider/runner_spec.rb
dispatch-rider-1.8.0 spec/lib/dispatch-rider/runner_spec.rb
dispatch-rider-1.7.2 spec/lib/dispatch-rider/runner_spec.rb
dispatch-rider-1.7.1 spec/lib/dispatch-rider/runner_spec.rb
dispatch-rider-1.7.0 spec/lib/dispatch-rider/runner_spec.rb
dispatch-rider-1.6.2 spec/lib/dispatch-rider/runner_spec.rb
dispatch-rider-1.6.1 spec/lib/dispatch-rider/runner_spec.rb