diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-03-10 17:37:58 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-03-10 17:37:58 +0000 |
commit | d244360d8b38218bd3e71c0203e9f2af41498daa (patch) | |
tree | 4dd99c19f76256866770d4035b606e7d9dfbdc6f /spec/models/concerns | |
parent | f030ca96950296390a162ebc7b59914282bdb605 (diff) | |
download | gitlab-ce-d244360d8b38218bd3e71c0203e9f2af41498daa.tar.gz |
Add latest changes from gitlab-org/gitlab@15-9-stable-ee
Diffstat (limited to 'spec/models/concerns')
-rw-r--r-- | spec/models/concerns/taskable_spec.rb | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/spec/models/concerns/taskable_spec.rb b/spec/models/concerns/taskable_spec.rb index 0ad29454ff3..14f346f353b 100644 --- a/spec/models/concerns/taskable_spec.rb +++ b/spec/models/concerns/taskable_spec.rb @@ -46,6 +46,22 @@ RSpec.describe Taskable, feature_category: :team_planning do subject { described_class.get_tasks(description) } it { is_expected.to match(expected_result) } + + describe 'with single line comments' do + let(:description) do + <<~MARKDOWN + <!-- line comment --> + + - [ ] only task item + + <!-- another line comment --> + MARKDOWN + end + + let(:expected_result) { [TaskList::Item.new('- [ ]', 'only task item')] } + + it { is_expected.to match(expected_result) } + end end describe '#task_list_items' do |