diff options
author | Louise Crow <louise.crow@gmail.com> | 2012-10-18 10:51:27 +0100 |
---|---|---|
committer | Louise Crow <louise.crow@gmail.com> | 2012-10-18 19:21:41 +0100 |
commit | 9d5af4d00c9e32a1dea163dfc8f5b57c53aea254 (patch) | |
tree | 0ae80295aca35e2b54d5384ca6bc3f840f501395 /spec/models/incoming_message_spec.rb | |
parent | a902a8308fe05e9fd7a61aa8378aaf95729fcc88 (diff) |
Convert request cited in comment to failing spec, update regex to make it pass (we now use the HTML parts of emails by preference, so there are some leading spaces.)
Diffstat (limited to 'spec/models/incoming_message_spec.rb')
-rw-r--r-- | spec/models/incoming_message_spec.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/spec/models/incoming_message_spec.rb b/spec/models/incoming_message_spec.rb index 69a5da0e9..fe1b36888 100644 --- a/spec/models/incoming_message_spec.rb +++ b/spec/models/incoming_message_spec.rb @@ -154,6 +154,14 @@ describe IncomingMessage, " folding quoted parts of emails" do text.should == "\n\nFOLDED_QUOTED_SECTION" end + it 'should fold an example of another kind of forward quoting' do + ir = info_requests(:fancy_dog_request) + receive_incoming_mail('forward-quoting-example.email', ir.incoming_email) + message = ir.incoming_messages[1] + message.get_main_body_text_folded.should match(/FOLDED_QUOTED_SECTION/) + end + + end describe IncomingMessage, " checking validity to reply to" do |