lib/fog/rackspace/requests/queues/get_claim.rb in fog-1.19.0 vs lib/fog/rackspace/requests/queues/get_claim.rb in fog-1.20.0

- old
+ new

@@ -1,8 +1,9 @@ module Fog module Rackspace class Queues + class Real # This operation queries the specified claim for the specified queue. Claims with malformed IDs or claims that are not found by ID are ignored. # # @param [String] queue_name Specifies the name of the queue. @@ -18,9 +19,23 @@ :expects => 200, :method => 'GET', :path => "queues/#{queue_name}/claims/#{claim_id}" ) end + end + + class Mock + def get_claim(queue_name, claim_id) + queue = mock_queue!(queue_name) + claim = queue.claim!(claim_id) + + response = Excon::Response.new + response.status = 200 + response.body = claim.to_h + response + end + end + end end end