features/destination_metadata.feature in message-driver-0.4.0 vs features/destination_metadata.feature in message-driver-0.5.0

- old
+ new

@@ -27,5 +27,31 @@ expect(destination.message_count).to eq(2) """ Then I expect to have no errors And I expect to find 2 messages on :my_queue + + Scenario: Check the consumer count when the queue has no consumers + When I execute the following code + """ruby + destination = MessageDriver::Client.find_destination(:my_queue) + expect(destination.consumer_count).to eq(0) + """ + + Then I expect to have no errors + + Scenario: Check the consumer count when the queue has consumers + Given I create some subscriptions + """ruby + 3.times do + MessageDriver::Client.subscribe_with(:my_queue) do |message| + puts message.inspect + end + end + """ + When I execute the following code + """ruby + destination = MessageDriver::Client.find_destination(:my_queue) + expect(destination.consumer_count).to eq(3) + """ + + Then I expect to have no errors