diff options
author | Louise Crow <louise.crow@gmail.com> | 2012-10-11 15:10:29 +0100 |
---|---|---|
committer | Louise Crow <louise.crow@gmail.com> | 2012-10-11 15:11:16 +0100 |
commit | 6833362f1805897df3684f872cc562d804df2422 (patch) | |
tree | d75baaedfde017da7def947f63d956c2a8fc72ee /spec/models/incoming_message_spec.rb | |
parent | dd0c8d32c423998ab24409f8b4cab338b089d9a4 (diff) |
In fact, the message in the example URL was not being folded properly anymore. Add a failing spec using it as an example.
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 b95cc83c4..69a5da0e9 100644 --- a/spec/models/incoming_message_spec.rb +++ b/spec/models/incoming_message_spec.rb @@ -132,6 +132,13 @@ end describe IncomingMessage, " folding quoted parts of emails" do + it 'should fold an example lotus notes quoted part converted from HTML correctly' do + ir = info_requests(:fancy_dog_request) + receive_incoming_mail('lotus-notes-quoting.email', ir.incoming_email) + message = ir.incoming_messages[1] + message.get_main_body_text_folded.should match(/FOLDED_QUOTED_SECTION/) + end + it 'should fold a plain text lotus notes quoted part correctly' do text = "FOI Team\n\n\nInfo Requester <xxx@whatdotheyknow.com>=20\nSent by: Info Requester <request-bounce-xxxxx@whatdotheyknow.com>\n06/03/08 10:00\nPlease respond to\nInfo Requester <request-xxxx@whatdotheyknow.com>" @incoming_message = IncomingMessage.new() |