Sha256: 2688682586c268337fcbbf8c837932bcc08a769ff35fc636acd7a9bf727c5f53
Contents?: true
Size: 556 Bytes
Versions: 1
Compression:
Stored size: 556 Bytes
Contents
require 'spec_helper' describe LiveQA::Processor::Worker do let(:queue) { Queue.new } let(:worker) { LiveQA::Processor::Worker.new(queue) } context 'do nothing' do before do allow(worker).to receive(:send_batches) worker.run end it { expect(worker).not_to have_received(:send_batches) } end context 'with something in the queue' do before do queue << { test: true } allow(LiveQA::Batch).to receive(:create) worker.run end it { expect(LiveQA::Batch).to have_received(:create) } end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
liveqa-1.9.0 | spec/lib/liveqa/processor/worker_spec.rb |