Sha256: 305cad7b523bcf7d76d3fe93043d46343b95623f568552461c2f474250f81147
Contents?: true
Size: 471 Bytes
Versions: 10
Compression:
Stored size: 471 Bytes
Contents
require 'spec_helper' describe Alephant::Publisher::Processor do before(:each) do allow_any_instance_of(Alephant::Publisher::Writer).to receive(:initialize) allow_any_instance_of(Alephant::Publisher::Writer).to receive(:run!) end describe "#consume(msg)" do it "Consume the message and deletes it" do msg = double('AWS::SQS::ReceivedMessage', :delete => nil) expect(msg).to receive(:delete) subject.consume(msg) end end end
Version data entries
10 entries across 10 versions & 1 rubygems