diff options
author | Douwe Maan <douwe@selenight.nl> | 2017-05-23 14:56:05 -0500 |
---|---|---|
committer | Douwe Maan <douwe@selenight.nl> | 2017-05-23 14:56:05 -0500 |
commit | 850b99830ef34c3dad83cf08f2390dd67567b945 (patch) | |
tree | 4326b50a8801adfb2109fd83f6f9453374cd9e73 /spec | |
parent | 4070d58af75d74cad12247e2da095d5a8b92dc1f (diff) | |
download | gitlab-ce-850b99830ef34c3dad83cf08f2390dd67567b945.tar.gz |
Add spec
Diffstat (limited to 'spec')
-rw-r--r-- | spec/features/copy_as_gfm_spec.rb | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/spec/features/copy_as_gfm_spec.rb b/spec/features/copy_as_gfm_spec.rb index b6c51569bdc..3ed7d5710ab 100644 --- a/spec/features/copy_as_gfm_spec.rb +++ b/spec/features/copy_as_gfm_spec.rb @@ -65,6 +65,19 @@ describe 'Copy as GFM', feature: true, js: true do GFM ) + aggregate_failures('an accidentally selected empty element') do + gfm = '# Heading1' + + html = <<-HTML.strip_heredoc + <h1>Heading1</h1> + + <h2></h2> + HTML + + output_gfm = html_to_gfm(html) + expect(output_gfm.strip).to eq(gfm.strip) + end + verify( 'InlineDiffFilter', |