summaryrefslogtreecommitdiff
path: root/spec/services/notes/create_service_spec.rb
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-09-10 21:08:28 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2020-09-10 21:08:28 +0000
commit5ec9ab0e8cc7293a364235d6cc57f6a77dce2c38 (patch)
treefa5a41398bf9a568e6cb979917d0938b6cc2a5a6 /spec/services/notes/create_service_spec.rb
parentc596046be917b250019fdfb509be85cfb48df152 (diff)
downloadgitlab-ce-5ec9ab0e8cc7293a364235d6cc57f6a77dce2c38.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/services/notes/create_service_spec.rb')
-rw-r--r--spec/services/notes/create_service_spec.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/spec/services/notes/create_service_spec.rb b/spec/services/notes/create_service_spec.rb
index 475f036ffc6..7c0d4b756bd 100644
--- a/spec/services/notes/create_service_spec.rb
+++ b/spec/services/notes/create_service_spec.rb
@@ -57,6 +57,16 @@ RSpec.describe Notes::CreateService do
described_class.new(project, user, opts).execute
end
+
+ context 'issue is an incident' do
+ subject { described_class.new(project, user, opts).execute }
+
+ let(:issue) { create(:incident, project: project) }
+
+ it_behaves_like 'an incident management tracked event', :incident_management_incident_comment do
+ let(:current_user) { user }
+ end
+ end
end
context 'noteable highlight cache clearing' do