FIX: update mail gem to fix UTF-8 parsing issue

This commit is contained in:
Régis Hanol
2018-04-25 21:52:54 +02:00
parent 416c79daa5
commit ddb092f397
5 changed files with 9 additions and 9 deletions

View File

@ -183,7 +183,7 @@ describe Email::Receiver do
it "works" do
expect { process(:text_reply) }.to change { topic.posts.count }
expect(topic.posts.last.raw).to eq("This is a text reply :)")
expect(topic.posts.last.raw).to eq("This is a text reply :)\n\nEmail parsing should not break because of a UTF-8 character: ’")
expect(topic.posts.last.via_email).to eq(true)
expect(topic.posts.last.cooked).not_to match(/<br/)
@ -233,7 +233,7 @@ describe Email::Receiver do
it "uses text when prefer_html site setting is enabled but no html is available" do
SiteSetting.incoming_email_prefer_html = true
expect { process(:text_reply) }.to change { topic.posts.count }
expect(topic.posts.last.raw).to eq("This is a text reply :)")
expect(topic.posts.last.raw).to eq("This is a text reply :)\n\nEmail parsing should not break because of a UTF-8 character: ’")
end
it "removes the 'on <date>, <contact> wrote' quoting line" do