aboutsummaryrefslogtreecommitdiffstats
path: root/spec/models/request_mailer_spec.rb
diff options
context:
space:
mode:
authorLouise Crow <louise.crow@gmail.com>2012-08-23 17:49:01 +0100
committerLouise Crow <louise.crow@gmail.com>2012-08-23 17:49:01 +0100
commit5ea4882f38bcf18016c82c1e6119c4df5237e96e (patch)
treea393c38b8b4273eee7f4a693c6f4c7a7bd55266f /spec/models/request_mailer_spec.rb
parentdb8bb7fa5440855420b8f3ce24611a766e52f89e (diff)
parenta311a1892507aacec5bfb2837dd10f5257dfb42c (diff)
Merge remote-tracking branch 'origin/release/0.6.4' into wdtk
Conflicts: app/views/request/show.rhtml spec/models/info_request_spec.rb
Diffstat (limited to 'spec/models/request_mailer_spec.rb')
-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 64ac35cf7..ea75ec765 100644
--- a/spec/models/request_mailer_spec.rb
+++ b/spec/models/request_mailer_spec.rb
@@ -223,7 +223,7 @@ describe RequestMailer, "when sending reminders to requesters to classify a resp
end
it 'should ask for all requests that are awaiting description and whose latest response is older than the number of days given and that are not the holding pen' do
- expected_params = {:conditions => [ "awaiting_description = ? and (select created_at from info_request_events where info_request_events.info_request_id = info_requests.id and info_request_events.event_type = 'response' order by created_at desc limit 1) < ? and url_title != 'holding_pen'",
+ expected_params = {:conditions => [ "awaiting_description = ? and (select created_at from info_request_events where info_request_events.info_request_id = info_requests.id and info_request_events.event_type = 'response' order by created_at desc limit 1) < ? and url_title != 'holding_pen' and user_id is not null",
true, Time.now() - 7.days ],
:include => [ :user ],
:order => "info_requests.id"}