mirror of
https://github.com/redmine/redmine.git
synced 2026-07-08 14:42:24 +02:00
Fixed: MailHandler raises an error when processing an email without From header (#2916).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2553 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -129,6 +129,11 @@ class MailHandlerTest < Test::Unit::TestCase
|
||||
assert_equal 1, issue.watchers.size
|
||||
end
|
||||
|
||||
def test_add_issue_without_from_header
|
||||
Role.anonymous.add_permission!(:add_issues)
|
||||
assert_equal false, submit_email('ticket_without_from_header.eml')
|
||||
end
|
||||
|
||||
def test_add_issue_note
|
||||
journal = submit_email('ticket_reply.eml')
|
||||
assert journal.is_a?(Journal)
|
||||
|
||||
Reference in New Issue
Block a user