diff options
Diffstat (limited to 'test')
-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 |