diff options
author | Robin Houston <robin.houston@gmail.com> | 2012-01-06 10:18:55 +0000 |
---|---|---|
committer | Robin Houston <robin.houston@gmail.com> | 2012-01-06 10:18:55 +0000 |
commit | 042f5460fffd5d7b0c4ea538d070e129c485e618 (patch) | |
tree | f5ea81bd4b2ab1a60862331a2e3a8591c6399546 /spec/models/incoming_message_spec.rb | |
parent | 6a93d027e744bfc4ab2f8f7808ee99c770003481 (diff) | |
parent | 8d7885217fdf4bf5061233679fbb42970cab1c3c (diff) |
Merge branch 'release/0.5' into wdtk
Diffstat (limited to 'spec/models/incoming_message_spec.rb')
-rw-r--r-- | spec/models/incoming_message_spec.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/spec/models/incoming_message_spec.rb b/spec/models/incoming_message_spec.rb index 08d3d89f7..f514d6546 100644 --- a/spec/models/incoming_message_spec.rb +++ b/spec/models/incoming_message_spec.rb @@ -31,6 +31,13 @@ describe IncomingMessage, " when dealing with incoming mail" do end end + it "should ensure cached body text has been parsed correctly" do + ir = info_requests(:fancy_dog_request) + receive_incoming_mail('quoted-subject-iso8859-1.email', ir.incoming_email) + message = ir.incoming_messages[1] + message.get_main_body_text_unfolded.should_not include("Email has no body") + end + it "should correctly convert HTML even when there's a meta tag asserting that it is iso-8859-1 which would normally confuse elinks" do ir = info_requests(:fancy_dog_request) receive_incoming_mail('quoted-subject-iso8859-1.email', ir.incoming_email) |