From b9e3fbcd83766329fd7c891291a5efc46ea51eb2 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Mon, 19 Jan 2009 19:03:53 +0000 Subject: 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 --- test/unit/mail_handler_test.rb | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'test/unit') 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) -- cgit v1.2.3