summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2007-05-10 17:46:16 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2007-05-10 17:46:16 +0000
commit270e3a4345f21b339352c3ffefbaa4deddab47c9 (patch)
treef99baa31564086a30c1c31d74b2deb1279f125c4
parent0fab627a3cd87ba44119996b1478723d08e54229 (diff)
downloadredmine-270e3a4345f21b339352c3ffefbaa4deddab47c9.tar.gz
redmine-270e3a4345f21b339352c3ffefbaa4deddab47c9.zip
Added "assigned to" field in mail notifications.
Also fixed mail_handler unit test (wrong fixture filename). git-svn-id: http://redmine.rubyforge.org/svn/trunk@527 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r--app/views/mailer/_issue.rhtml1
-rw-r--r--test/unit/mail_handler_test.rb2
2 files changed, 2 insertions, 1 deletions
diff --git a/app/views/mailer/_issue.rhtml b/app/views/mailer/_issue.rhtml
index 877947d38..bf17132e6 100644
--- a/app/views/mailer/_issue.rhtml
+++ b/app/views/mailer/_issue.rhtml
@@ -1,5 +1,6 @@
<%=l(:label_issue)%> #<%= issue.id %> - <%= issue.subject %>
<%=l(:field_author)%>: <%= issue.author.display_name %>
+<%=l(:field_assigned_to)%>: <%= issue.assigned_to ? issue.assigned_to.name : "-" %>
<%=l(:field_status)%>: <%= issue.status.name %>
<%= issue.description %>
diff --git a/test/unit/mail_handler_test.rb b/test/unit/mail_handler_test.rb
index 9b6800871..8cac2d8b9 100644
--- a/test/unit/mail_handler_test.rb
+++ b/test/unit/mail_handler_test.rb
@@ -36,7 +36,7 @@ class MailHandlerTest < Test::Unit::TestCase
end
def test_add_note_to_issue
- raw = read_fixture("add_note_to_issue_2.txt").join
+ raw = read_fixture("add_note_to_issue.txt").join
MailHandler.receive(raw)
issue = Issue.find(2)