lib/fog/rackspace/requests/queues/update_claim.rb in fog-maestrodev-1.19.0.20140212012611 vs lib/fog/rackspace/requests/queues/update_claim.rb in fog-maestrodev-1.20.0.20140305101305

- old
+ new

@@ -1,8 +1,9 @@ module Fog module Rackspace class Queues + class Real # This operation posts the specified message or messages. # @note You can submit up to 10 messages in a single request. # @@ -18,9 +19,25 @@ :expects => 204, :method => 'PATCH', :path => "queues/#{queue_name}/claims/#{claim_id}" ) end + end + + class Mock + def update_claim(queue_name, claim_id, ttl) + queue = mock_queue!(queue_name) + claim = queue.claim!(claim_id) + + claim.touch! + claim.ttl = ttl + + response = Excon::Response.new + response.status = 204 + response + end + end + end end end