diff options
author | Go MAEDA <maeda@farend.jp> | 2019-09-13 08:51:46 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2019-09-13 08:51:46 +0000 |
commit | dbaea7c59937c9d5711ec1b76eabbfae454b01af (patch) | |
tree | 2d77e7434fe6baa504950c0afddef8ab4b55aa6e | |
parent | 25778c48de3034d9c5b4306fcb3d4d9df7e000dc (diff) | |
download | redmine-dbaea7c59937c9d5711ec1b76eabbfae454b01af.tar.gz redmine-dbaea7c59937c9d5711ec1b76eabbfae454b01af.zip |
mail_body method in test/test_helper.rb raises an exception if the message is not multipart (#32025).
This change fixes random test failures.
git-svn-id: http://svn.redmine.org/redmine/trunk@18465 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r-- | test/test_helper.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/test_helper.rb b/test/test_helper.rb index 390ea92b4..6a6fd7fa5 100644 --- a/test/test_helper.rb +++ b/test/test_helper.rb @@ -250,7 +250,7 @@ class ActiveSupport::TestCase end def mail_body(mail) - mail.parts.first.body.encoded + (mail.multipart? ? mail.parts.first : mail).body.encoded end # Returns the lft value for a new root issue |