test: add attachment tests at unit mail handler test for Rails3

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8719 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA 2012-01-29 11:24:48 +00:00
parent f49d8d8c5f
commit 64b59f1502
1 changed files with 3 additions and 0 deletions

View File

@ -301,6 +301,9 @@ class MailHandlerTest < ActiveSupport::TestCase
attachment = issue.attachments.first
assert_equal 'paella.jpg', attachment.filename
assert_equal 10790, attachment.filesize
assert File.exist?(attachment.diskfile)
assert_equal 10790, File.size(attachment.diskfile)
assert_equal 'caaf384198bcbc9563ab5c058acd73cd', attachment.digest
end
def test_should_ignore_emails_from_emission_address