Sha256: e91f5e222fce40db2cb6c8567fac0d675e7eb8b6b942c76fb6d1f1b1700b1070
Contents?: true
Size: 1.1 KB
Versions: 2
Compression:
Stored size: 1.1 KB
Contents
require "integration/test_helper" describe "Listing Queues" do after do ServiceBusQueueNameHelper.clean end it "should be able to get a list of queues" do q1 = Azure::ServiceBus::Queues.create(ServiceBusQueueNameHelper.name) q2 = Azure::ServiceBus::Queues.create(ServiceBusQueueNameHelper.name) result = Azure::ServiceBus::Queues.list result.must_be :kind_of?, Array result.count.must_equal 2 result.must_include q1 result.must_include q2 end it "should be able to use $skip" do q1 = Azure::ServiceBus::Queues.create(ServiceBusQueueNameHelper.name) q2 = Azure::ServiceBus::Queues.create(ServiceBusQueueNameHelper.name) q3 = Azure::ServiceBus::Queues.create(ServiceBusQueueNameHelper.name) result = Azure::ServiceBus::Queues.list(:skip => 1) result.count.must_equal 2 end it "should be able to use $top" do q1 = Azure::ServiceBus::Queues.create(ServiceBusQueueNameHelper.name) q2 = Azure::ServiceBus::Queues.create(ServiceBusQueueNameHelper.name) result = Azure::ServiceBus::Queues.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/queues/list_queues_test.rb |
azure-0.1.0 | test/integration/service_bus/queues/list_queues_test.rb |