summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2009-04-19 08:33:56 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2009-04-19 08:33:56 +0000
commit2a3fe1604a6ec17febff189305649d31e2ec871e (patch)
tree6062c189a2e706eda903689da8a905f911501430 /test
parent43200e21220db2aa7a88838a6713d77de1bb3f16 (diff)
downloadredmine-2a3fe1604a6ec17febff189305649d31e2ec871e.tar.gz
redmine-2a3fe1604a6ec17febff189305649d31e2ec871e.zip
Fixed: Issue status in the notify email's subject is the issue's old status, should be its new status (#3194).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2673 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test')
-rw-r--r--test/functional/issues_controller_test.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/functional/issues_controller_test.rb b/test/functional/issues_controller_test.rb
index 0df66abdb..f562ac9c5 100644
--- a/test/functional/issues_controller_test.rb
+++ b/test/functional/issues_controller_test.rb
@@ -696,6 +696,8 @@ class IssuesControllerTest < Test::Unit::TestCase
mail = ActionMailer::Base.deliveries.last
assert mail.body.include?("Status changed from New to Assigned")
+ # subject should contain the new status
+ assert mail.subject.include?("(#{ IssueStatus.find(2).name })")
end
def test_post_edit_with_note_only