diff options
Diffstat (limited to 'spec/services/draft_notes/publish_service_spec.rb')
-rw-r--r-- | spec/services/draft_notes/publish_service_spec.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/spec/services/draft_notes/publish_service_spec.rb b/spec/services/draft_notes/publish_service_spec.rb index 81443eed7d3..44fe9063ac9 100644 --- a/spec/services/draft_notes/publish_service_spec.rb +++ b/spec/services/draft_notes/publish_service_spec.rb @@ -78,6 +78,10 @@ RSpec.describe DraftNotes::PublishService do end end + it_behaves_like 'does not trigger GraphQL subscription mergeRequestMergeStatusUpdated' do + let(:action) { publish } + end + it 'does not publish any draft note' do expect { publish }.not_to change { DraftNote.count } end @@ -97,6 +101,10 @@ RSpec.describe DraftNotes::PublishService do end end + it_behaves_like 'triggers GraphQL subscription mergeRequestMergeStatusUpdated' do + let(:action) { publish } + end + it 'returns success' do result = publish |