diff options
author | Luke "Jared" Bennett <lbennett@gitlab.com> | 2017-04-07 19:29:08 +0300 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2017-04-14 17:30:43 +0300 |
commit | 115d1afeb386d2b1fef4ca437fafd8227d72c0ad (patch) | |
tree | d28a241e28d35328239f3dc49df941d581a74c4e /spec/features/issues_spec.rb | |
parent | 3c9318a8c58f638f57cfe86cb2f84625445996c8 (diff) |
Only add newlines for multiple uploads
Diffstat (limited to 'spec/features/issues_spec.rb')
-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 |