Sha256: d88e4446b241d2cb83531db5b7b193a3857d19045662ac7e073b43b05e3c7bdd
Contents?: true
Size: 808 Bytes
Versions: 15
Compression:
Stored size: 808 Bytes
Contents
require 'spec_helper' describe Alephant::Publisher::Queue::SQSHelper::Queue do describe "#message" do it "returns a message" do m = double("message").as_null_object q = double("queue").as_null_object expect(q).to receive(:receive_message).and_return(m) instance = Alephant::Publisher::Queue::SQSHelper::Queue.new(q) expect(instance.message).to eq(m) end it "call see(m) on the handed archiver" do a = double("archiver").as_null_object m = double("message").as_null_object q = double("queue").as_null_object expect(q).to receive(:receive_message).and_return(m) expect(a).to receive(:see).with(m) instance = Alephant::Publisher::Queue::SQSHelper::Queue.new(q, a) expect(instance.message).to eq(m) end end end
Version data entries
15 entries across 15 versions & 1 rubygems