aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'spec/models/question_spec.rb')
-rw-r--r--spec/models/question_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/models/question_spec.rb b/spec/models/question_spec.rb
index b8ff206..0489be4 100644
--- a/spec/models/question_spec.rb
+++ b/spec/models/question_spec.rb
@@ -71,7 +71,7 @@ describe Question do
question = Question.new(:title => "new question",
:question_category => category)
- UserMailer.should_receive(:send_later).with(:deliver_new_question, recruit, question)
+ UserMailer.should_receive_delayed(:deliver_new_question, recruit, question)
question.save!
end
@@ -82,7 +82,7 @@ describe Question do
question = Factory(:question, :title => "new question",
:question_category => category, :user => Factory(:recruit))
- UserMailer.should_receive(:send_later).with(:deliver_new_question, recruit, question)
+ UserMailer.should_receive_delayed(:deliver_new_question, recruit, question)
question.approved = true
question.save!
end