FIX: support emails in with weird encoding

This commit is contained in:
Régis Hanol
2016-03-11 18:51:53 +01:00
parent 01f2f05f2d
commit 841cec1bc1
3 changed files with 15 additions and 1 deletions

View File

@@ -109,6 +109,9 @@ describe Email::Receiver do
expect { process(:chinese_reply) }.to change { topic.posts.count }
expect(topic.posts.last.raw).to eq("您好! 你今天好吗?")
expect { process(:reply_with_weird_encoding) }.to change { topic.posts.count }
expect(topic.posts.last.raw).to eq("This is a reply with a weird encoding.")
end
it "prefers text over html" do