diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2013-05-12 09:38:20 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2013-05-12 09:38:20 +0000 |
commit | 9b7d312a0e663e7d1d797a277522c6b79a02b119 (patch) | |
tree | 77be242bbda42e63909abd05d15deb642d90a033 /test/unit/mail_handler_test.rb | |
parent | 76a3298306ef209c7b5d6c3ea307cecdb86d0123 (diff) | |
download | redmine-9b7d312a0e663e7d1d797a277522c6b79a02b119.tar.gz redmine-9b7d312a0e663e7d1d797a277522c6b79a02b119.zip |
Fix handling multiple text parts in email (#13646).
Patch by Alex Shulgin.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11834 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit/mail_handler_test.rb')
-rw-r--r-- | test/unit/mail_handler_test.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/unit/mail_handler_test.rb b/test/unit/mail_handler_test.rb index d1eabca42..013da992e 100644 --- a/test/unit/mail_handler_test.rb +++ b/test/unit/mail_handler_test.rb @@ -492,6 +492,13 @@ class MailHandlerTest < ActiveSupport::TestCase assert_equal 'd8e8fca2dc0f896fd7cb4cb0031ba249', attachment.digest end + def test_multiple_text_parts + issue = submit_email('multiple_text_parts.eml', :issue => {:project => 'ecookbook'}) + assert_include 'first', issue.description + assert_include 'second', issue.description + assert_include 'third', issue.description + end + def test_add_issue_with_iso_8859_1_subject issue = submit_email( 'subject_as_iso-8859-1.eml', |