features/destination_metadata.feature in message-driver-0.2.2 vs features/destination_metadata.feature in message-driver-0.3.0
- old
+ new
@@ -6,11 +6,11 @@
And I have a destination :my_queue with no messages on it
Scenario: Checking the message count when the queue is empty
When I execute the following code
"""ruby
- destination = MessageDriver::Broker.find_destination(:my_queue)
+ destination = MessageDriver::Client.find_destination(:my_queue)
expect(destination.message_count).to eq(0)
"""
Then I expect to have no errors
And I expect to find no messages on :my_queue
@@ -21,10 +21,10 @@
| Test Message 1 |
| Test Message 2 |
And I allow for processing
And I execute the following code
"""ruby
- destination = MessageDriver::Broker.find_destination(:my_queue)
+ destination = MessageDriver::Client.find_destination(:my_queue)
expect(destination.message_count).to eq(2)
"""
Then I expect to have no errors
And I expect to find 2 messages on :my_queue