diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2009-01-19 19:03:53 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2009-01-19 19:03:53 +0000 |
commit | b9e3fbcd83766329fd7c891291a5efc46ea51eb2 (patch) | |
tree | c523871efcda689848cdeb82b0bf1ba975be93ce /test/unit | |
parent | 0c4e40b89cfeab5feb9cfa0aecd6f2233134a076 (diff) | |
download | redmine-b9e3fbcd83766329fd7c891291a5efc46ea51eb2.tar.gz redmine-b9e3fbcd83766329fd7c891291a5efc46ea51eb2.zip |
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
Diffstat (limited to 'test/unit')
-rw-r--r-- | test/unit/mail_handler_test.rb | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/test/unit/mail_handler_test.rb b/test/unit/mail_handler_test.rb index 0df64425b..6a691a237 100644 --- a/test/unit/mail_handler_test.rb +++ b/test/unit/mail_handler_test.rb @@ -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) |