25
26
27
28
29
30
31
32
33
34
35
|
# File 'lib/sbmt/pact/rspec/support/pact_message_helpers.rb', line 25
def
raise "Please require sbmt/outbox to use helper" unless defined?(::Sbmt::Outbox)
{
Sbmt::Outbox::OutboxItem::OUTBOX_HEADER_NAME => match_regex(/(.+?_)*outbox_item/, "order_outbox_item"),
Sbmt::Outbox::OutboxItem::IDEMPOTENCY_HEADER_NAME => match_uuid,
Sbmt::Outbox::OutboxItem::SEQUENCE_HEADER_NAME => match_regex(/\d+/, "68"),
Sbmt::Outbox::OutboxItem::EVENT_TIME_HEADER_NAME => match_iso8601,
Sbmt::Outbox::OutboxItem::DISPATCH_TIME_HEADER_NAME => match_iso8601
}
end
|