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

- old
+ new

@@ -1,8 +1,9 @@ module Fog module Rackspace class Queues + class Real # This operation immediately deletes a queue and all of its existing messages. # # @param [String] queue_name Specifies the name of the queue. @@ -17,9 +18,20 @@ :expects => 204, :method => 'DELETE', :path => "queues/#{queue_name}" ) end + end + + class Mock + def delete_queue(queue_name) + data.delete(queue_name) + response = Excon::Response.new + response.status = 204 + response + end + end + end end end