Sha256: 89938bfef550b3a1cf7041f8801c2fb8dd2bd1f7d2d05abb27525c53232e0416

Contents?: true

Size: 605 Bytes

Versions: 2

Compression:

Stored size: 605 Bytes

Contents

require "integration/test_helper"

describe "Deleting a Queue" do

  after do
    ServiceBusQueueNameHelper.clean
  end

  it "should return false if the queue cannot be deleted" do
    queue = Azure::ServiceBus::Queues::Queue.new(ServiceBusQueueNameHelper.name)
    response = queue.delete

    response.must_equal false
    refute queue.valid?
    refute queue.frozen?
  end

  it "should return true if the queue can be deleted" do
    queue = Azure::ServiceBus::Queues.create(ServiceBusQueueNameHelper.name)
    response = queue.delete

    response.must_equal true
    assert queue.frozen?
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

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