Accept replies to forum messages by subject recognition (#1616).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2294 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2009-01-21 18:22:30 +00:00
parent b80caf762a
commit dfab202cde
4 changed files with 28 additions and 3 deletions
+9
View File
@@ -153,6 +153,15 @@ class MailHandlerTest < Test::Unit::TestCase
assert_equal Message.find(1), m.parent
end
def test_reply_to_a_message_by_subject
m = submit_email('message_reply_by_subject.eml')
assert m.is_a?(Message)
assert !m.new_record?
m.reload
assert_equal 'Reply to the first post', m.subject
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)