features/publishing_a_message.feature in message-driver-0.1.0 vs features/publishing_a_message.feature in message-driver-0.2.0.rc1
- old
+ new
@@ -1,19 +1,15 @@
@all_adapters
Feature: Publishing A Message
Background:
- Given the following broker configuration:
- """ruby
- MessageDriver::Broker.define do |b|
- b.destination :my_queue, "my_queue", exclusive: true
- end
- """
+ Given I am connected to the broker
+ And I have a destination :publish_test with no messages on it
- Scenario: Running within a with_message_transaction block
- When I execute the following code:
+ Scenario: Publishing a message
+ When I execute the following code
"""ruby
- publish(:my_queue, "Test Message")
+ publish(:publish_test, "Test Message")
"""
- Then I expect to find 1 message on :my_queue with:
+ Then I expect to find the following message on :publish_test
| body |
| Test Message |