Sha256: ef98128aef86730b36d102ad3c8c4da882d96b8d9abe50d6151ce7ab4d453508

Contents?: true

Size: 419 Bytes

Versions: 2

Compression:

Stored size: 419 Bytes

Contents

require "integration/test_helper"

describe "Clear Messages" do
  after do
    QueueNameHelper.clean
  end

  before do
    @queue = Azure::Queues.create(QueueNameHelper.name)
  end

  it "should be able to delete all messages from the queue" do
    @queue << "message 1"
    @queue << "message 2"

    result = @queue.clear
    result.must_equal true

    messages = @queue.get(5)
    messages.must_be_empty
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
azure-0.1.1 test/integration/queues/clear_messages_test.rb
azure-0.1.0 test/integration/queues/clear_messages_test.rb