lib/fake_sqs/api.rb in fake_sqs-0.4.0 vs lib/fake_sqs/api.rb in fake_sqs-0.4.1
- old
+ new
@@ -32,12 +32,12 @@
sleep(5)
end
end
end
- def call(action, *args)
+ def call(action, request, *args)
if FakeSQS::Actions.const_defined?(action)
- action = FakeSQS::Actions.const_get(action).new(options)
+ action = FakeSQS::Actions.const_get(action).new(options.merge({:request => request}))
queues.transaction do
action.call(*args)
end
else
fail InvalidAction, "Unknown (or not yet implemented) action: #{action}"