diff options
author | Robert Speicher <rspeicher@gmail.com> | 2015-05-04 17:37:37 -0400 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2015-05-06 13:00:13 -0400 |
commit | c915c7b0010d5f9a76092622eff5f17afa072c61 (patch) | |
tree | 382cd881acc8582fcc8193db454f2941291dddfd /spec/features | |
parent | 421f3f1551fee86cac163b06404c407b5ac34604 (diff) | |
download | gitlab-ce-c915c7b0010d5f9a76092622eff5f17afa072c61.tar.gz |
Add TaskList to Markdown feature spec
Diffstat (limited to 'spec/features')
-rw-r--r-- | spec/features/markdown_spec.rb | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/spec/features/markdown_spec.rb b/spec/features/markdown_spec.rb index 3528200e12b..296055e89fa 100644 --- a/spec/features/markdown_spec.rb +++ b/spec/features/markdown_spec.rb @@ -24,6 +24,7 @@ require 'erb' # -> Rinku (http, https, ftp) # -> Other schemes # -> References +# -> TaskList # -> `html_safe` # -> Template # @@ -266,6 +267,15 @@ describe 'GitLab Markdown' do expect(body).to have_selector('a.gfm.gfm-label', count: 3) end end + + describe 'Task Lists' do + it 'generates task lists' do + body = get_section('task-lists') + expect(body).to have_selector('ul.task-list', count: 2) + expect(body).to have_selector('li.task-list-item', count: 7) + expect(body).to have_selector('input[checked]', count: 3) + end + end end end @@ -276,9 +286,8 @@ end # once. Unfortunately RSpec will not let you access `let`s in a `before(:all)` # block, so we fake it by encapsulating all the shared setup in this class. # -# The class contains the raw Markup used in the test, dynamically substituting -# real objects, created from factories and setup on-demand, when referenced in -# the Markdown. +# The class renders `spec/fixtures/markdown.md.erb` using ERB, allowing for +# reference to the factory-created objects. class MarkdownFeature include FactoryGirl::Syntax::Methods |