diff options
author | Vinnie Okada <vokada@mrvinn.com> | 2015-03-24 20:03:22 -0600 |
---|---|---|
committer | Vinnie Okada <vokada@mrvinn.com> | 2015-03-24 20:03:22 -0600 |
commit | 057c8c344b6518cb50b81607e0f88734fc164a9e (patch) | |
tree | 996afee0c0f33bd6308f83b330a179dc29dfb48a /spec/helpers/gitlab_markdown_helper_spec.rb | |
parent | 637ca0b388382112850fd3052a961bb07db34d14 (diff) | |
parent | b9372c999707558b695fa401b4f660a3d38fce86 (diff) | |
download | gitlab-ce-057c8c344b6518cb50b81607e0f88734fc164a9e.tar.gz |
Merge branch 'master' into markdown-tags
Diffstat (limited to 'spec/helpers/gitlab_markdown_helper_spec.rb')
-rw-r--r-- | spec/helpers/gitlab_markdown_helper_spec.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/spec/helpers/gitlab_markdown_helper_spec.rb b/spec/helpers/gitlab_markdown_helper_spec.rb index 3a884d39bf1..c631acc591d 100644 --- a/spec/helpers/gitlab_markdown_helper_spec.rb +++ b/spec/helpers/gitlab_markdown_helper_spec.rb @@ -847,6 +847,17 @@ EOT ) end + it 'should render checkboxes for nested tasks' do + rendered_text = markdown(@source_text_asterisk, parse_tasks: true) + + expect(rendered_text).to match( + /<input.*checkbox.*valid unchecked nested task/ + ) + expect(rendered_text).to match( + /<input.*checkbox.*valid checked nested task/ + ) + end + it 'should not be confused by whitespace before bullets' do rendered_text_asterisk = markdown(@source_text_asterisk, parse_tasks: true) |