aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHenare Degan <henare.degan@gmail.com>2013-02-08 15:29:05 +1100
committerHenare Degan <henare.degan@gmail.com>2013-02-08 15:29:05 +1100
commitd38e035cced8bf225f1e3c94755f3ad14db0b302 (patch)
tree582a730c0680dd969b74cf896c644381cb2518d5
parentf142cd59517b098386d90a4feee9c0a26692ee02 (diff)
Mocking and stubbing work a bit differently, this allows the test to run
-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 f7eaa58f8..72fd808d7 100644
--- a/spec/models/request_mailer_spec.rb
+++ b/spec/models/request_mailer_spec.rb
@@ -243,7 +243,7 @@ describe RequestMailer, "when sending reminders to requesters to classify a resp
query_params[:conditions].should == expected_conditions
query_params[:include].should == [ :user ]
query_params[:order].should == 'info_requests.id'
- end
+ end.and_return [@mock_request]
send_alerts
end