diff options
author | Henare Degan <henare.degan@gmail.com> | 2013-02-08 15:29:05 +1100 |
---|---|---|
committer | Henare Degan <henare.degan@gmail.com> | 2013-02-08 15:29:05 +1100 |
commit | d38e035cced8bf225f1e3c94755f3ad14db0b302 (patch) | |
tree | 582a730c0680dd969b74cf896c644381cb2518d5 | |
parent | f142cd59517b098386d90a4feee9c0a26692ee02 (diff) |
Mocking and stubbing work a bit differently, this allows the test to run
-rw-r--r-- | spec/models/request_mailer_spec.rb | 2 |
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 |