1
0
mirror of https://github.com/meineerde/redmine.git synced 2025-12-23 00:41:14 +00:00

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
This commit is contained in:
Go MAEDA 2019-09-13 08:51:46 +00:00
parent 25778c48de
commit dbaea7c599

View File

@ -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