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:
authorJacopo <beschi.jacopo@gmail.com>2019-07-20 12:06:19 +0300
committerJacopo <beschi.jacopo@gmail.com>2019-07-29 22:51:16 +0300
commit6613a57772ee14b121b790ab8048523d1c0430ce (patch)
treea65537100c2c2a8cf8cf03f0fb51a7c57164ed63 /spec/services/issues
parent0d1adc9f7f990254fd88ba03011908cc4f83461d (diff)
Add system notes for when a zoom call was added/removed from an issue
Add a zoom link added / removed system note when a zoom link is being added / removed to the issue description.
Diffstat (limited to 'spec/services/issues')
-rw-r--r--spec/services/issues/update_service_spec.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/spec/services/issues/update_service_spec.rb b/spec/services/issues/update_service_spec.rb
index 468e7c286d5..f72618943b2 100644
--- a/spec/services/issues/update_service_spec.rb
+++ b/spec/services/issues/update_service_spec.rb
@@ -226,6 +226,15 @@ describe Issues::UpdateService, :mailer do
end
end
+ it 'creates zoom_link_added system note when a zoom link is added to the description' do
+ update_issue(description: 'Changed description https://zoom.us/j/5873603787')
+
+ note = find_note('a Zoom call was added')
+
+ expect(note).not_to be_nil
+ expect(note.note).to eq('a Zoom call was added to this issue')
+ end
+
context 'when issue turns confidential' do
let(:opts) do
{