FIX: handle multiple paragraphs in email reply when parsing html

This commit is contained in:
Arpit Jalan
2014-10-08 19:45:46 +05:30
parent c46b9c0ac3
commit b457005b07
4 changed files with 218 additions and 2 deletions

View File

@@ -82,6 +82,17 @@ Thanks for listening."
)
end
it "handles multiple paragraphs when parsing html" do
test_parse_body(fixture_file("emails/html_paragraphs.eml")).
should == (
"Awesome!
Pleasure to have you here!
:boom:"
)
end
it "converts back to UTF-8 at the end" do
result = test_parse_body(fixture_file("emails/big5.eml"))
result.encoding.should == Encoding::UTF_8