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