Sha256: cb48de0993ab5378ae7d50dd3e8b0692f78e639ddc9e292963be08eae0799abd
Contents?: true
Size: 602 Bytes
Versions: 1
Compression:
Stored size: 602 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 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-1.6.0 | spec/lib/dispatch-rider/runner_spec.rb |