Sha256: be38c4cbaf39bd688a757fe53c3c7c833b6ff7495ed09237225b3fc9d35005e3
Contents?: true
Size: 960 Bytes
Versions: 26
Compression:
Stored size: 960 Bytes
Contents
Shindo.tests('Fog::Rackspace::Queues | queue', ['rackspace']) do service = Fog::Rackspace::Queues.new options = { :name => "fog_instance_#{Time.now.to_i.to_s}", } model_tests(service.queues, options) do tests('#stats').formats(QUEUE_STATS_FORMAT['messages']) do @instance.stats end tests('#enqueue("msg", 60)') do @instance.enqueue("msg", 60) end tests('#dequeue(60, 60)').returns(true) do @instance.dequeue(60, 60) do |message| returns("msg") { message.body } end end tests('#dequeue(60, 60) => with not messages').returns(false) do @instance.dequeue(60, 60) do |message| end end tests('#dequeue(60, 60) => not passing block').returns(true) do @instance.enqueue("msg", 60) @instance.dequeue(60, 60) end tests('#dequeue(60, 60) => with not messages and not passing block').returns(false) do @instance.dequeue(60, 60) end end end
Version data entries
26 entries across 24 versions & 5 rubygems