aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'spec/models/answer_spec.rb')
-rw-r--r--spec/models/answer_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/models/answer_spec.rb b/spec/models/answer_spec.rb
index 200077d..de72393 100644
--- a/spec/models/answer_spec.rb
+++ b/spec/models/answer_spec.rb
@@ -141,14 +141,14 @@ describe Answer do
#can't use Factory Girl here, because we want to save it after setting expectation to get email
answer = Answer.new(:owner => recruit, :question => question, :content => "Some answer.")
- UserMailer.should_receive(:send_later).with(:deliver_new_answer, recruit.mentor, answer)
+ UserMailer.should_receive_delayed(:deliver_new_answer, recruit.mentor, answer)
answer.save!
end
it "should send email notification to mentor when changed" do
answer = Factory(:answer)
- UserMailer.should_receive(:send_later).with(:deliver_changed_answer, answer.owner.mentor, answer)
+ UserMailer.should_receive_delayed(:deliver_changed_answer, answer.owner.mentor, answer)
answer.content = "changed"
answer.save!
end