spec/unit/api_spec.rb in fake_sqs-0.4.0 vs spec/unit/api_spec.rb in fake_sqs-0.4.1
- old
+ new
@@ -17,12 +17,12 @@
it "delegates actions to classes" do
queues = double :queues
allow(queues).to receive(:transaction).and_yield
api = FakeSQS::API.new(:queues => queues)
- response = api.call("TheAction", {:foo => "bar"})
+ response = api.call("TheAction", {}, {:foo => "bar"})
- expect(response[:options]).to eq :queues => queues
+ expect(response[:options]).to eq :queues => queues, :request => {}
expect(response[:params]).to eq :foo => "bar"
end
it "raises InvalidAction for unknown actions" do
api = FakeSQS::API.new(:queues => [])