Allow email to reply to a forum message (#1616).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2289 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2009-01-19 19:03:53 +00:00
parent 0c4e40b89c
commit b9e3fbcd83
3 changed files with 46 additions and 1 deletions
+13 -1
View File
@@ -30,7 +30,9 @@ class MailHandlerTest < Test::Unit::TestCase
:enumerations,
:issue_categories,
:custom_fields,
:custom_fields_trackers
:custom_fields_trackers,
:boards,
:messages
FIXTURES_PATH = File.dirname(__FILE__) + '/../fixtures/mail_handler'
@@ -141,6 +143,16 @@ class MailHandlerTest < Test::Unit::TestCase
assert_equal IssueStatus.find_by_name("Resolved"), issue.status
end
def test_reply_to_a_message
m = submit_email('message_reply.eml')
assert m.is_a?(Message)
assert !m.new_record?
m.reload
assert_equal 'Reply via email', m.subject
# The email replies to message #2 which is part of the thread of message #1
assert_equal Message.find(1), m.parent
end
def test_should_strip_tags_of_html_only_emails
issue = submit_email('ticket_html_only.eml', :issue => {:project => 'ecookbook'})
assert issue.is_a?(Issue)