mirror of
https://github.com/redmine/redmine.git
synced 2025-11-08 06:15:59 +01:00
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
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user