Sha256: 8eb645917b5e8fd6ac124587af9ecac6a2d4e2a69958b5e40d48c0a463a13b4e
Contents?: true
Size: 1.02 KB
Versions: 1
Compression:
Stored size: 1.02 KB
Contents
@bunny Feature: Server-Named Destinations AMQP brokers allow you to create queues that are named by the server. Here's how you do it with message_driver. Background: Given I am connected to the broker Scenario: Creating a server-named queue I expect my destination to have the queue name given to it by the server When I execute the following code: """ruby destination = MessageDriver::Broker.dynamic_destination("", exclusive: true) expect(destination.name).to_not be_empty """ Then I expect to have no errors Scenario: sending and receiving messages through a server-named queue Given the following broker configuration: """ruby MessageDriver::Broker.define do |b| b.destination :my_queue, "my_queue", exclusive: true end """ When I execute the following code: """ruby publish(:my_queue, "server-named queue message") """ Then I expect to find 1 message on :my_queue with: | body | | server-named queue message |
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
message-driver-0.1.0 | features/amqp_specific_features/server_named_destinations.feature |