Sha256: b6ba94122208742dd537363a2f9c7ddb04880f11adf20db6f06faab134b578e4

Contents?: true

Size: 549 Bytes

Versions: 2

Compression:

Stored size: 549 Bytes

Contents

require "integration/test_helper"

describe "Deleting a Queue" do

  after do
    ServiceBusQueueNameHelper.clean
  end

  it "should be able to get a queue by name" do
    queue_name = ServiceBusQueueNameHelper.name
    queue = Azure::ServiceBus::Queues.create(queue_name)

    result = Azure::ServiceBus::Queues.get(queue_name)

    result.must_equal queue
  end

  it "if the queue doesn't exists I should get a list of links to immediate child nodes" do
    result = Azure::ServiceBus::Queues.get('inexistent')

    result.must_be_nil
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

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