diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2018-01-07 21:48:02 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2018-01-07 21:48:02 +0000 |
commit | 8072c0dd1e75e8df65548b8a98b1a471ea206b88 (patch) | |
tree | 038294e142499e727bf8522882df55c5348b8c53 /test/unit | |
parent | 0acf526cf344f9685ce15e0d13b11e96e5d96bba (diff) | |
download | redmine-8072c0dd1e75e8df65548b8a98b1a471ea206b88.tar.gz redmine-8072c0dd1e75e8df65548b8a98b1a471ea206b88.zip |
Merged r17147 to 3.3-stable (#27885).
git-svn-id: http://svn.redmine.org/redmine/branches/3.3-stable@17149 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit')
-rw-r--r-- | test/unit/mail_handler_test.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/unit/mail_handler_test.rb b/test/unit/mail_handler_test.rb index c1afdaebd..634968ef4 100644 --- a/test/unit/mail_handler_test.rb +++ b/test/unit/mail_handler_test.rb @@ -606,6 +606,14 @@ class MailHandlerTest < ActiveSupport::TestCase assert_equal content, File.read(attachment.diskfile).force_encoding('CP852') end + def test_empty_attachment_should_not_be_imported + issue = submit_email( + 'ticket_with_empty_attachment.eml', + issue: { project: 'ecookbook' } + ) + assert_equal 0, issue.attachments.size + end + def test_multiple_inline_text_parts_should_be_appended_to_issue_description issue = submit_email('multiple_text_parts.eml', :issue => {:project => 'ecookbook'}) assert_include 'first', issue.description |