spec/unit/queues_spec.rb in fake_sqs-0.3.0 vs spec/unit/queues_spec.rb in fake_sqs-0.3.1

- old
+ new

@@ -25,14 +25,12 @@ queue = double allow(queue_factory).to receive(:new).and_return(queue) expect(create_queue("test")).to eq queue end - it "cannot create a queue with the same name" do - create_queue("test") - expect { - create_queue("test") - }.to raise_error(FakeSQS::QueueNameExists, "test") + it "returns existing queue if the queue exists" do + queue = create_queue("test") + expect(create_queue("test")).to eq(queue) end end describe "#delete" do