diff options
author | Douwe Maan <douwe@selenight.nl> | 2017-05-23 14:58:39 -0500 |
---|---|---|
committer | Douwe Maan <douwe@selenight.nl> | 2017-05-24 14:40:14 -0500 |
commit | f14bb942538c28850d4d971be48a0acfb06e1ad3 (patch) | |
tree | e7852c6ef3e165bc4924bc97847e00f336b1ae4e | |
parent | 78e7efaed0ed7092ed36495c91b33775fc932678 (diff) | |
download | gitlab-ce-f14bb942538c28850d4d971be48a0acfb06e1ad3.tar.gz |
Add spec
-rw-r--r-- | spec/features/copy_as_gfm_spec.rb | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/spec/features/copy_as_gfm_spec.rb b/spec/features/copy_as_gfm_spec.rb index 9318c56112b..740f60c05cc 100644 --- a/spec/features/copy_as_gfm_spec.rb +++ b/spec/features/copy_as_gfm_spec.rb @@ -78,6 +78,25 @@ describe 'Copy as GFM', feature: true, js: true do expect(output_gfm.strip).to eq(gfm.strip) end + aggregate_failures('an accidentally selected other element') do + gfm = 'Test comment with **Markdown!**' + + html = <<-HTML.strip_heredoc + <li class="note"> + <div class="md"> + <p> + Test comment with <strong>Markdown!</strong> + </p> + </div> + </li> + + <li class="note"></li> + HTML + + output_gfm = html_to_gfm(html) + expect(output_gfm.strip).to eq(gfm.strip) + end + verify( 'InlineDiffFilter', |