aboutsummaryrefslogtreecommitdiffstats
path: root/spec/models
diff options
context:
space:
mode:
authorMatthew Landauer <matthew@openaustralia.org>2013-02-01 17:39:05 +1100
committerMatthew Landauer <matthew@openaustralia.org>2013-02-01 17:39:05 +1100
commit8ef10e453fb0c87c3c58ce6eefdd54c1928a6590 (patch)
tree91d98cb3fee88282f39ccdc2b28542ea40576617 /spec/models
parentd05f4b605f21501e54d3576eae6f5f1af190ba18 (diff)
Move over to rails 3 mail api because there appear to be problems with sending attachments
Diffstat (limited to 'spec/models')
-rw-r--r--spec/models/request_mailer_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/models/request_mailer_spec.rb b/spec/models/request_mailer_spec.rb
index 5edc8edb6..f7eaa58f8 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 = MailHandler.mail_from_raw_email(mail.parts[1].body)
+ bounced_mail = MailHandler.mail_from_raw_email(mail.parts[1].body.to_s)
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