diff options
Diffstat (limited to 'doc/development/event_store.md')
-rw-r--r-- | doc/development/event_store.md | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/doc/development/event_store.md b/doc/development/event_store.md index b9200d3be25..10dc0b1a7a9 100644 --- a/doc/development/event_store.md +++ b/doc/development/event_store.md @@ -351,6 +351,12 @@ RSpec.describe MergeRequests::UpdateHeadPipelineWorker do let(:event) { pipeline_created_event } end + # This shared example ensures that an published event is ignored. This might be useful for + # conditional dispatch testing. + it_behaves_like 'ignores the published event' do + let(:event) { pipeline_created_event } + end + it 'does something' do # This helper directly executes `perform` ensuring that `handle_event` is called correctly. consume_event(subscriber: described_class, event: pipeline_created_event) |