Sha256: f9ebbca14b17d03907a8782b759cb7118cbc42b3abc7c3d9c363181f7128748c
Contents?: true
Size: 514 Bytes
Versions: 9
Compression:
Stored size: 514 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 = double("AWS::SQS::ReceivedMessage", :delete => nil) expect(msg).to receive(:delete) subject.consume(msg) end end end
Version data entries
9 entries across 9 versions & 1 rubygems