Sha256: 83ab68f735b77111ff9d677b98cd8e22cbcf0b3110b819c6cf9f4bab26830c9d
Contents?: true
Size: 690 Bytes
Versions: 1
Compression:
Stored size: 690 Bytes
Contents
# frozen_string_literal: true require 'spec_helper' describe DispatchRider::Runner do describe ".run" do let(:subscriber) { double(:subscriber) } before 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
dispatch-rider-2.2.0 | spec/lib/dispatch-rider/runner_spec.rb |