Sha256: f164694d5fc4e48e7a081ab4931e3f159ca52af2dfb39f6194ea6bb25173f51a
Contents?: true
Size: 1.1 KB
Versions: 2
Compression:
Stored size: 1.1 KB
Contents
require "integration/test_helper" describe "Listing Topics" do after do ServiceBusTopicNameHelper.clean end it "should be able to get a list of topics" do t1 = Azure::ServiceBus::Topics.create(ServiceBusTopicNameHelper.name) t2 = Azure::ServiceBus::Topics.create(ServiceBusTopicNameHelper.name) result = Azure::ServiceBus::Topics.list result.must_be :kind_of?, Array result.count.must_equal 2 result.must_include t1 result.must_include t2 end it "should be able to use $skip" do t1 = Azure::ServiceBus::Topics.create(ServiceBusTopicNameHelper.name) t2 = Azure::ServiceBus::Topics.create(ServiceBusTopicNameHelper.name) t3 = Azure::ServiceBus::Topics.create(ServiceBusTopicNameHelper.name) result = Azure::ServiceBus::Topics.list(:skip => 1) result.count.must_equal 2 end it "should be able to use $top" do t1 = Azure::ServiceBus::Topics.create(ServiceBusTopicNameHelper.name) t2 = Azure::ServiceBus::Topics.create(ServiceBusTopicNameHelper.name) result = Azure::ServiceBus::Topics.list(:top => 1) result.count.must_equal 1 end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
azure-0.1.1 | test/integration/service_bus/topics/list_topics_test.rb |
azure-0.1.0 | test/integration/service_bus/topics/list_topics_test.rb |