summaryrefslogtreecommitdiffstats
path: root/test/unit/mail_handler_test.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2011-03-13 13:24:56 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2011-03-13 13:24:56 +0000
commit59bf5cea6ec40553adeb93eb55530c4357bf5626 (patch)
tree8ea686bfdf5d896a4ffafece80c48088b0a6f792 /test/unit/mail_handler_test.rb
parent9375f1c3a4ea42a7175febf75da404dbf59aa7b0 (diff)
downloadredmine-59bf5cea6ec40553adeb93eb55530c4357bf5626.tar.gz
redmine-59bf5cea6ec40553adeb93eb55530c4357bf5626.zip
Fixed: mail handler keywords are not removed when updating issues (#7785).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5105 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit/mail_handler_test.rb')
-rw-r--r--test/unit/mail_handler_test.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/unit/mail_handler_test.rb b/test/unit/mail_handler_test.rb
index a9f7b77da..c4cc8edaa 100644
--- a/test/unit/mail_handler_test.rb
+++ b/test/unit/mail_handler_test.rb
@@ -70,6 +70,7 @@ class MailHandlerTest < ActiveSupport::TestCase
# keywords should be removed from the email body
assert !issue.description.match(/^Project:/i)
assert !issue.description.match(/^Status:/i)
+ assert !issue.description.match(/^Start Date:/i)
# Email notification should be sent
mail = ActionMailer::Base.deliveries.last
assert_not_nil mail
@@ -318,6 +319,9 @@ class MailHandlerTest < ActiveSupport::TestCase
assert_equal '2010-12-31', issue.due_date.to_s
assert_equal User.find_by_login('jsmith'), issue.assigned_to
assert_equal "52.6", issue.custom_value_for(CustomField.find_by_name('Float field')).value
+ # keywords should be removed from the email body
+ assert !journal.notes.match(/^Status:/i)
+ assert !journal.notes.match(/^Start Date:/i)
end
def test_add_issue_note_should_send_email_notification