test/integration/service_bus/subscriptions_test.rb in azure-0.7.0 vs test/integration/service_bus/subscriptions_test.rb in azure-0.7.1

- old
+ new

@@ -93,17 +93,17 @@ } assert subscription_found, "list_subscriptions didn't include the expected subscription" end describe 'when there are messages' do - let(:msg) { + let(:msg) { m = Azure::ServiceBus::BrokeredMessage.new('some message body', {:prop1 => 'val1'}) m.to = 'me' m.label = 'my_label' m } - before { + before { subject.send_topic_message topic, msg } it 'should be able to peek lock a message' do retrieved = subject.peek_lock_subscription_message topic, subscription @@ -157,11 +157,11 @@ describe 'when there are multiple subscriptions' do let(:subscription1) { ServiceBusTopicNameHelper.name } let(:subscription2) { ServiceBusTopicNameHelper.name } - before { + before { subject.create_subscription topic, subscription1 subject.create_subscription topic, subscription2 } it 'should be able to list subscriptions' do @@ -185,10 +185,10 @@ result2 = subject.list_subscriptions topic, { :skip => 1 } result2.length.must_equal result.length - 1 result2.continuation_token.must_be_nil result2[0].id.must_equal result[1].id end - + it 'should be able to use $top token' do result = subject.list_subscriptions topic result.length.wont_equal 1 result.continuation_token.must_be_nil