Sha256: 6db8862d70f741fe5d6b8cc74b6e80c392c9e0888de50ae904b71cb4580f9fbb
Contents?: true
Size: 697 Bytes
Versions: 2
Compression:
Stored size: 697 Bytes
Contents
require "integration/test_helper" describe "List Rules" 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 a new rule" do Azure::ServiceBus::Rules.create(@subscription, "myRule") Azure::ServiceBus::Rules.create(@subscription, "myOtherRule") rules = Azure::ServiceBus::Rules.all(@subscription) rules.must_be :kind_of?, Array rules.size.must_equal 3 rules.first.name.must_equal "$Default" rules.first.filter.wont_be_nil rules.first.action.wont_be_nil end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
azure-0.1.1 | test/integration/service_bus/rules/list_rules_test.rb |
azure-0.1.0 | test/integration/service_bus/rules/list_rules_test.rb |