diff options
author | Louise Crow <louise.crow@gmail.com> | 2012-11-15 14:15:56 +0000 |
---|---|---|
committer | Louise Crow <louise.crow@gmail.com> | 2012-11-15 14:15:56 +0000 |
commit | c22653c85c8029bf2ee193eb892bad1f3d0e93fe (patch) | |
tree | 49bfe1dc98b45d4f76a7123aaf9515b6d886fef6 | |
parent | 42cdad422c119ca3eaf214dbe76fc01d784f56f9 (diff) |
Use mail handler in request mailer spec.
-rw-r--r-- | spec/models/request_mailer_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/models/request_mailer_spec.rb b/spec/models/request_mailer_spec.rb index 906756784..0f09e6926 100644 --- a/spec/models/request_mailer_spec.rb +++ b/spec/models/request_mailer_spec.rb @@ -98,7 +98,7 @@ describe RequestMailer, " when receiving incoming mail" do mail.multipart?.should == true mail.parts.size.should == 2 message_part = mail.parts[0].to_s - bounced_mail = TMail::Mail.parse(mail.parts[1].body) + bounced_mail = MailHandler.mail_from_raw_email(mail.parts[1].body, decode=false) bounced_mail.to.should == [ ir.incoming_email ] bounced_mail.from.should == [ 'geraldinequango@localhost' ] bounced_mail.body.include?("That's so totally a rubbish question").should be_true |