diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2017-03-05 08:41:20 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2017-03-05 08:41:20 +0000 |
commit | a9a1f6205aca80c57c4be9b99dbf67aed733133c (patch) | |
tree | c5357ec8cdc3ba861e0149233aa72f73d430f28b /test/unit/mail_handler_test.rb | |
parent | 7a60e44d43e412fc06b0039307051ffd33380e6c (diff) | |
download | redmine-a9a1f6205aca80c57c4be9b99dbf67aed733133c.tar.gz redmine-a9a1f6205aca80c57c4be9b99dbf67aed733133c.zip |
Mail parts with empty content should be ignored (#25256).
Patch by Felix Schäfer.
git-svn-id: http://svn.redmine.org/redmine/trunk@16371 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit/mail_handler_test.rb')
-rw-r--r-- | test/unit/mail_handler_test.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/unit/mail_handler_test.rb b/test/unit/mail_handler_test.rb index 562359a38..73040f766 100644 --- a/test/unit/mail_handler_test.rb +++ b/test/unit/mail_handler_test.rb @@ -623,6 +623,11 @@ class MailHandlerTest < ActiveSupport::TestCase assert_include 'third', issue.description end + def test_empty_text_part_should_not_stop_looking_for_content + issue = submit_email('empty_text_part.eml', :issue => {:project => 'ecookbook'}) + assert_equal 'The html part.', issue.description + end + def test_attachment_text_part_should_be_added_as_issue_attachment issue = submit_email('multiple_text_parts.eml', :issue => {:project => 'ecookbook'}) assert_not_include 'Plain text attachment', issue.description |