Sha256: dc3189fb0e62ef0d7eaf0b2c7811ca52a4349f0c99f42ae8c02dab06cdbe77ae
Contents?: true
Size: 1.01 KB
Versions: 5
Compression:
Stored size: 1.01 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, "", exclusive: true end """ When I execute the following code """ruby publish(:my_queue, "server-named queue message") """ Then I expect to find the following message on :my_queue | body | | server-named queue message |
Version data entries
5 entries across 5 versions & 1 rubygems