Sha256: 2801cc8a2825103c29f0b4a8ddf40386ccf3afdcfa0b61495c68607de4c91221

Contents?: true

Size: 635 Bytes

Versions: 5

Compression:

Stored size: 635 Bytes

Contents

Given(/^I have a dynamic destination "(#{STRING_OR_SYM})" with the following messages on it$/) do |destination, table|
  dest = MessageDriver::Broker.dynamic_destination(destination)
  test_runner.publish_table_to_destination(dest, table)
end

Then(/^I expect to find (#{NUMBER}) messages? on the dynamic destination "(#{STRING_OR_SYM})" with$/) do |count, destination, table|
  expect(test_runner).to have_no_errors
  dest = MessageDriver::Broker.dynamic_destination(destination, passive: true)
  messages = test_runner.fetch_messages(dest)
  expect(messages).to have(count).items
  expect(messages).to match_message_table(table)
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
message-driver-0.2.2 features/step_definitions/dynamic_destinations_steps.rb
message-driver-0.2.1 features/step_definitions/dynamic_destinations_steps.rb
message-driver-0.2.0 features/step_definitions/dynamic_destinations_steps.rb
message-driver-0.2.0.rc2 features/step_definitions/dynamic_destinations_steps.rb
message-driver-0.2.0.rc1 features/step_definitions/dynamic_destinations_steps.rb