mirror of
https://github.com/redmine/redmine.git
synced 2026-05-07 11:26:10 +02:00
Merged r6324 and r6325 from trunk (#8651).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/branches/1.2-stable@7766 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -278,6 +278,16 @@ class MailHandlerTest < ActiveSupport::TestCase
|
||||
assert_kind_of Issue, issue
|
||||
assert_equal tracker, issue.tracker
|
||||
end
|
||||
|
||||
def test_add_issue_from_apple_mail
|
||||
issue = submit_email('apple_mail_with_attachment.eml', :issue => {:project => 'ecookbook'})
|
||||
assert_kind_of Issue, issue
|
||||
assert_equal 1, issue.attachments.size
|
||||
|
||||
attachment = issue.attachments.first
|
||||
assert_equal 'paella.jpg', attachment.filename
|
||||
assert_equal 10790, attachment.filesize
|
||||
end
|
||||
|
||||
def test_should_ignore_emails_from_emission_address
|
||||
Role.anonymous.add_permission!(:add_issues)
|
||||
|
||||
Reference in New Issue
Block a user