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