Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'spec/workers/new_issue_worker_spec.rb')
-rw-r--r--spec/workers/new_issue_worker_spec.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/spec/workers/new_issue_worker_spec.rb b/spec/workers/new_issue_worker_spec.rb
index 540296374ef..b9cbf974a69 100644
--- a/spec/workers/new_issue_worker_spec.rb
+++ b/spec/workers/new_issue_worker_spec.rb
@@ -99,6 +99,14 @@ RSpec.describe NewIssueWorker, feature_category: :team_planning do
expect(Event.last).to have_attributes(target_id: issue.id, target_type: 'WorkItem')
end
end
+
+ context 'when skip_notifications is true' do
+ it 'does not call NotificationService' do
+ expect(NotificationService).not_to receive(:new)
+
+ worker.perform(issue.id, user.id, issue.class.name, true)
+ end
+ end
end
end
end