Sha256: d0d40a02248b3911b04f0387c33cd52a6b25c5c4653c2d7d5fc2648171b19cfb
Contents?: true
Size: 692 Bytes
Versions: 2
Compression:
Stored size: 692 Bytes
Contents
require "integration/test_helper" describe "Creating a Subscription" do before do @topic = Azure::ServiceBus::Topics.create(ServiceBusTopicNameHelper.name, {}) end after do ServiceBusTopicNameHelper.clean end it "should be able to create a new subscription" do subscription = @topic.subscriptions.create("subscription-name") subscription.must_be_kind_of Azure::ServiceBus::Subscriptions::Subscription assert subscription.valid? end it "can create a subscription with extra parameters" do subscription = @topic.subscriptions.create("subscription-name") do |sub| sub.default_ttl = 75 end subscription.default_ttl.must_equal 75 end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
azure-0.1.1 | test/integration/service_bus/subscriptions/create_subscription_test.rb |
azure-0.1.0 | test/integration/service_bus/subscriptions/create_subscription_test.rb |