Sha256: fdf81b7c0ce5509dc7de9803b890e498f1663a952e58654ffbd240c1bc38499d

Contents?: true

Size: 1.45 KB

Versions: 16

Compression:

Stored size: 1.45 KB

Contents

@in_memory
@bunny
Feature: Subscribing a Consumer with a block
  Background:
    Given I am connected to the broker
    And I have a destination :dest_queue with no messages on it
    And I have a destination :source_queue with no messages on it
    And I create a subscription
    """ruby
    MessageDriver::Client.subscribe_with(:source_queue) do |message|
      MessageDriver::Client.publish(:dest_queue, message.body)
    end
    """


  Scenario: Consuming Messages
    When I send the following messages to :source_queue
      | body           |
      | Test Message 1 |
      | Test Message 2 |
    And I let the subscription process

    Then I expect to find no messages on :source_queue
    And I expect to find the following 2 messages on :dest_queue
      | body           |
      | Test Message 1 |
      | Test Message 2 |


  Scenario: Ending a subscription
    When I send the following messages to :source_queue
      | body           |
      | Test Message 1 |
      | Test Message 2 |
    And I allow for processing
    And I cancel the subscription
    And I send the following messages to :source_queue
      | body           |
      | Test Message 3 |
      | Test Message 4 |

    Then I expect to find the following 2 messages on :dest_queue
      | body           |
      | Test Message 1 |
      | Test Message 2 |

    And I expect to find the following 2 messages on :source_queue
      | body           |
      | Test Message 3 |
      | Test Message 4 |

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
message-driver-1.0.1 features/message_consumers/subscribe_with_a_block.feature
message-driver-1.0.0 features/message_consumers/subscribe_with_a_block.feature
message-driver-0.7.2 features/message_consumers/subscribe_with_a_block.feature
message-driver-0.7.1 features/message_consumers/subscribe_with_a_block.feature
message-driver-0.7.0 features/message_consumers/subscribe_with_a_block.feature
message-driver-0.6.1 features/message_consumers/subscribe_with_a_block.feature
message-driver-0.6.0 features/message_consumers/subscribe_with_a_block.feature
message-driver-0.5.3 features/message_consumers/subscribe_with_a_block.feature
message-driver-0.5.2 features/message_consumers/subscribe_with_a_block.feature
message-driver-0.5.1 features/message_consumers/subscribe_with_a_block.feature
message-driver-0.5.0 features/message_consumers/subscribe_with_a_block.feature
message-driver-0.4.0 features/message_consumers/subscribe_with_a_block.feature
message-driver-0.3.0 features/message_consumers/subscribe_with_a_block.feature
message-driver-0.2.2 features/message_consumers/subscribe_with_a_block.feature
message-driver-0.2.1 features/message_consumers/subscribe_with_a_block.feature
message-driver-0.2.0 features/message_consumers/subscribe_with_a_block.feature