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
path: root/spec/lib
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/lib
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/lib')
-rw-r--r--spec/lib/gitlab/zoom_link_extractor_spec.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/spec/lib/gitlab/zoom_link_extractor_spec.rb b/spec/lib/gitlab/zoom_link_extractor_spec.rb
index 52387fc3688..c3d1679d031 100644
--- a/spec/lib/gitlab/zoom_link_extractor_spec.rb
+++ b/spec/lib/gitlab/zoom_link_extractor_spec.rb
@@ -20,5 +20,15 @@ describe Gitlab::ZoomLinkExtractor do
it { is_expected.to eq(links) }
end
+
+ describe '#match?' do
+ it 'is true when a zoom link found' do
+ expect(described_class.new('issue text https://zoom.us/j/123')).to be_match
+ end
+
+ it 'is false when no zoom link found' do
+ expect(described_class.new('issue text')).not_to be_match
+ end
+ end
end
end