diff options
author | Jacopo <beschi.jacopo@gmail.com> | 2019-07-20 12:06:19 +0300 |
---|---|---|
committer | Jacopo <beschi.jacopo@gmail.com> | 2019-07-29 22:51:16 +0300 |
commit | 6613a57772ee14b121b790ab8048523d1c0430ce (patch) | |
tree | a65537100c2c2a8cf8cf03f0fb51a7c57164ed63 /spec/lib | |
parent | 0d1adc9f7f990254fd88ba03011908cc4f83461d (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.rb | 10 |
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 |