diff options
author | Louise Crow <louise.crow@gmail.com> | 2012-10-18 19:25:34 +0100 |
---|---|---|
committer | Louise Crow <louise.crow@gmail.com> | 2012-10-18 19:25:34 +0100 |
commit | 5ad0dcc660b1fdb8e8625b41950547aa7f6c5c49 (patch) | |
tree | e66367c5dacca928da25033aabcb1c1d6647fe3c /spec/models/incoming_message_spec.rb | |
parent | 60c5a8a25b4b0c0e56e98ad5a0304883dd2f8035 (diff) |
Convert example in comment to failing spec, update regex to make spec pass - again the use of converted HTML parts in emails means extra leading spaces.
Diffstat (limited to 'spec/models/incoming_message_spec.rb')
-rw-r--r-- | spec/models/incoming_message_spec.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/spec/models/incoming_message_spec.rb b/spec/models/incoming_message_spec.rb index fe1b36888..b038c43d9 100644 --- a/spec/models/incoming_message_spec.rb +++ b/spec/models/incoming_message_spec.rb @@ -161,6 +161,15 @@ describe IncomingMessage, " folding quoted parts of emails" do message.get_main_body_text_folded.should match(/FOLDED_QUOTED_SECTION/) end + it 'should fold a further example of forward quoting' do + ir = info_requests(:fancy_dog_request) + receive_incoming_mail('forward-quoting-example-2.email', ir.incoming_email) + message = ir.incoming_messages[1] + body_text = message.get_main_body_text_folded + body_text.should match(/FOLDED_QUOTED_SECTION/) + # check that the quoted section incorporates both quoted messages + body_text.should_not match('Subject: RE: Freedom of Information request') + end end |