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:
parent
25778c48de
commit
dbaea7c599
@ -250,7 +250,7 @@ class ActiveSupport::TestCase
|
|||||||
end
|
end
|
||||||
|
|
||||||
def mail_body(mail)
|
def mail_body(mail)
|
||||||
mail.parts.first.body.encoded
|
(mail.multipart? ? mail.parts.first : mail).body.encoded
|
||||||
end
|
end
|
||||||
|
|
||||||
# Returns the lft value for a new root issue
|
# Returns the lft value for a new root issue
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user