Adds a rake task to send reminders. An email is sent to each user with a list of the issues due in the next days, if any.

See @rake -D redmine:send_reminders@ for options.

git-svn-id: http://redmine.rubyforge.org/svn/trunk@1459 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2008-05-25 17:31:50 +00:00
parent d99dc4070a
commit 0c81052770
33 changed files with 151 additions and 2 deletions
+1 -1
View File
@@ -42,7 +42,7 @@ issues_003:
category_id:
description: Error 281 is encountered when saving a recipe
tracker_id: 1
assigned_to_id:
assigned_to_id: 3
author_id: 2
status_id: 1
start_date: <%= 1.day.from_now.to_date.to_s(:db) %>
+9
View File
@@ -116,4 +116,13 @@ class MailerTest < Test::Unit::TestCase
assert Mailer.deliver_register(token)
end
end
def test_reminders
ActionMailer::Base.deliveries.clear
Mailer.reminders(:days => 42)
assert_equal 1, ActionMailer::Base.deliveries.size
mail = ActionMailer::Base.deliveries.last
assert mail.bcc.include?('dlopper@somenet.foo')
assert mail.body.include?('Bug #3: Error 281 when updating a recipe')
end
end