diff options
author | Eric Davis <edavis@littlestreamsoftware.com> | 2010-05-29 00:05:24 +0000 |
---|---|---|
committer | Eric Davis <edavis@littlestreamsoftware.com> | 2010-05-29 00:05:24 +0000 |
commit | e94c45d5484138c500f040a917afaed13a47ddc8 (patch) | |
tree | 768d06b2ca4b878403aa3e92c18a21dfed466d25 /test/unit | |
parent | 080dc2212efdb7c91c43ff672ca91cc55b75d6a0 (diff) | |
download | redmine-e94c45d5484138c500f040a917afaed13a47ddc8.tar.gz redmine-e94c45d5484138c500f040a917afaed13a47ddc8.zip |
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
Diffstat (limited to 'test/unit')
-rw-r--r-- | test/unit/mail_handler_test.rb | 2 |
1 files changed, 2 insertions, 0 deletions
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 |