diff options
author | Luke "Jared" Bennett <lbennett@gitlab.com> | 2017-04-07 17:29:08 +0100 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2017-04-14 15:30:43 +0100 |
commit | 115d1afeb386d2b1fef4ca437fafd8227d72c0ad (patch) | |
tree | d28a241e28d35328239f3dc49df941d581a74c4e /spec | |
parent | 3c9318a8c58f638f57cfe86cb2f84625445996c8 (diff) | |
download | gitlab-ce-115d1afeb386d2b1fef4ca437fafd8227d72c0ad.tar.gz |
Only add newlines for multiple uploadsremove-double-newline-for-single-attachments
Diffstat (limited to 'spec')
-rw-r--r-- | spec/features/issues_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/features/issues_spec.rb b/spec/features/issues_spec.rb index e3213d24f6a..362d167befa 100644 --- a/spec/features/issues_spec.rb +++ b/spec/features/issues_spec.rb @@ -601,10 +601,10 @@ describe 'Issues', feature: true do expect(page.find_field("issue_description").value).to have_content 'banana_sample' end - it 'adds double newline to end of attachment markdown' do + it "doesn't add double newline to end of a single attachment markdown" do dropzone_file Rails.root.join('spec', 'fixtures', 'banana_sample.gif') - expect(page.find_field("issue_description").value).to match /\n\n$/ + expect(page.find_field("issue_description").value).not_to match /\n\n$/ end end |