Sha256: be86a16916c002716e58a55a655a063b15c11cb8ff9b011e09c55c739aa83bd9
Contents?: true
Size: 944 Bytes
Versions: 2
Compression:
Stored size: 944 Bytes
Contents
require "integration/test_helper" describe Azure::ServiceBus::Subscriptions::Subscription do before do @topic = Azure::ServiceBus::Topics.create(ServiceBusTopicNameHelper.name, {}) @subscription = @topic.subscriptions.create("mySubscription") end after do ServiceBusTopicNameHelper.clean end it "should be able to create rules" do rule = @subscription.create_rule("myRule") rule.must_be :kind_of?, Azure::ServiceBus::Rules::Rule end it "should be able to list rules" do @subscription.create_rule("myRule") rules = @subscription.get_rules rules.size.must_equal 2 # There is always a $Default Rule rules.first.must_be :kind_of?, Azure::ServiceBus::Rules::Rule end it "should be able to get rules" do @subscription.create_rule("myRule") rule = @subscription.get_rule("myRule") rule.must_be :kind_of?, Azure::ServiceBus::Rules::Rule rule.name.must_equal "myRule" end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
azure-0.1.1 | test/integration/service_bus/subscriptions/subscription_test.rb |
azure-0.1.0 | test/integration/service_bus/subscriptions/subscription_test.rb |