spec/alephant/publisher/queue/sqs_helper/queue_spec.rb in alephant-publisher-queue-2.5.0 vs spec/alephant/publisher/queue/sqs_helper/queue_spec.rb in alephant-publisher-queue-2.6.0
- old
+ new
@@ -4,11 +4,11 @@
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)
+ expect(q).to receive(:receive_messages).and_return(m)
instance = Alephant::Publisher::Queue::SQSHelper::Queue.new(q)
expect(instance.message).to eq(m)
end
@@ -16,10 +16,10 @@
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(q).to receive(:receive_messages).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)