From e94c45d5484138c500f040a917afaed13a47ddc8 Mon Sep 17 00:00:00 2001 From: Eric Davis Date: Sat, 29 May 2010 00:05:24 +0000 Subject: Add an "Assigned To" keyword to receiving email. #5594 Will take a user's email address, login, or full name. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3764 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- test/unit/mail_handler_test.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'test/unit') diff --git a/test/unit/mail_handler_test.rb b/test/unit/mail_handler_test.rb index afc2029b8..29659daae 100644 --- a/test/unit/mail_handler_test.rb +++ b/test/unit/mail_handler_test.rb @@ -57,6 +57,7 @@ class MailHandlerTest < ActiveSupport::TestCase assert issue.description.include?('Lorem ipsum dolor sit amet, consectetuer adipiscing elit.') assert_equal '2010-01-01', issue.start_date.to_s assert_equal '2010-12-31', issue.due_date.to_s + assert_equal User.find_by_login('jsmith'), issue.assigned_to # keywords should be removed from the email body assert !issue.description.match(/^Project:/i) assert !issue.description.match(/^Status:/i) @@ -256,6 +257,7 @@ class MailHandlerTest < ActiveSupport::TestCase assert_equal IssueStatus.find_by_name("Resolved"), issue.status assert_equal '2010-01-01', issue.start_date.to_s assert_equal '2010-12-31', issue.due_date.to_s + assert_equal User.find_by_login('jsmith'), issue.assigned_to end def test_add_issue_note_should_send_email_notification -- cgit v1.2.3