Sha256: 3587387c8c6a58ae0634de03effa97b5f0709f44bbad389b63a0054b1e7ff4e7

Contents?: true

Size: 549 Bytes

Versions: 2

Compression:

Stored size: 549 Bytes

Contents

require "integration/test_helper"

describe "Deleting a Topic" do

  after do
    ServiceBusTopicNameHelper.clean
  end

  it "should be able to get a topic by name" do
    topic_name = ServiceBusTopicNameHelper.name
    topic = Azure::ServiceBus::Topics.create(topic_name)

    result = Azure::ServiceBus::Topics.get(topic_name)

    result.must_equal topic
  end

  it "if the topic doesn't exists I should get a list of links to immediate child nodes" do
    result = Azure::ServiceBus::Topics.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/topics/get_topic_test.rb
azure-0.1.0 test/integration/service_bus/topics/get_topic_test.rb