提交 98849c71 编写于 作者: K kennyj

Fix AM testcase break with mail 2.5.4. It seems that AM's testcase was wrong.

上级 6062e42f
* No changes.
* Fix ActionMailer testcase break with mail 2.5.4.
ActionMailer's testcase was wrong, because :transfer_encoding option was ignored in mail 2.5.3.
*kennyj*
Please check [4-0-stable](https://github.com/rails/rails/blob/4-0-stable/actionmailer/CHANGELOG.md) for previous changes.
......@@ -38,7 +38,7 @@ def attachment_with_content(hash = {})
end
def attachment_with_hash
attachments['invoice.jpg'] = { data: "\312\213\254\232)b",
attachments['invoice.jpg'] = { data: ::Base64.encode64("\312\213\254\232)b"),
mime_type: "image/x-jpg",
transfer_encoding: "base64" }
mail
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册