features/dynamic_destinations.feature in message-driver-0.2.2 vs features/dynamic_destinations.feature in message-driver-0.3.0
- old
+ new
@@ -8,11 +8,11 @@
Given I am connected to the broker
Scenario: Sending to a dynamic destination
When I execute the following code
"""ruby
- my_new_destination = MessageDriver::Broker.dynamic_destination("temp_queue")
+ my_new_destination = MessageDriver::Client.dynamic_destination("temp_queue")
my_new_destination.publish("Test Message")
"""
Then I expect to find 1 message on the dynamic destination "temp_queue" with
| body |
@@ -24,10 +24,10 @@
| Test Message 1 |
| Test Message 2 |
When I execute the following code
"""ruby
- my_new_destination = MessageDriver::Broker.dynamic_destination("temp_queue")
+ my_new_destination = MessageDriver::Client.dynamic_destination("temp_queue")
msg1 = my_new_destination.pop_message
expect(msg1.body).to eq("Test Message 1")
msg2 = my_new_destination.pop_message