To add a collaborator to this project you will need to use the Relish gem to add the collaborator via a terminal command. Soon you'll be able to also add collaborators here!
More about adding a collaboratorDestination Metadata
- Background
-
- Given
-
the following broker configuration:
MessageDriver::Broker.define do |b| b.destination :my_queue, "my_queue", exclusive: true end
- Scenarios
-
- Checking the message count when the queue is empty
-
- When
-
I execute the following code:
destination = MessageDriver::Broker.find_destination(:my_queue) expect(destination.message_count).to eq(0)
- Then
- I expect to have no errors
- And
- I expect to find no messages on :my_queue
- Checking the message count when the queue has messages
-
- When
-
I execute the following code:
publish(:my_queue, "test message 1") publish(:my_queue, "test message 2") destination = MessageDriver::Broker.find_destination(:my_queue) expect(destination.message_count).to eq(2)
- Then
- I expect to have no errors
- And
- I expect to find 2 messages on :my_queue
Last published over 7 years ago by soupmatt.