aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'spec/models/email_answer_spec.rb')
-rw-r--r--spec/models/email_answer_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/models/email_answer_spec.rb b/spec/models/email_answer_spec.rb
index b452a19..3e7096f 100644
--- a/spec/models/email_answer_spec.rb
+++ b/spec/models/email_answer_spec.rb
@@ -7,7 +7,7 @@ describe EmailAnswer do
mail.subject = "#{question.id + 1}-#{recruit.token}"
mail.from = recruit.email_address
- UserMailer.should_receive(:send_later).with(:deliver_unrecognized_email, recruit, mail)
+ UserMailer.should_receive_delayed(:deliver_unrecognized_email, recruit, mail)
EmailAnswer.answer_from_email(mail)
end
@@ -18,7 +18,7 @@ describe EmailAnswer do
mail.subject = "#{question.id}-#{recruit.token}"
mail.from = recruit.email_address
- UserMailer.should_receive(:send_later).with(:deliver_unrecognized_email, recruit, mail)
+ UserMailer.should_receive_delayed(:deliver_unrecognized_email, recruit, mail)
EmailAnswer.answer_from_email(mail)
end