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:
parent
f49d8d8c5f
commit
64b59f1502
|
@ -301,6 +301,9 @@ class MailHandlerTest < ActiveSupport::TestCase
|
||||||
attachment = issue.attachments.first
|
attachment = issue.attachments.first
|
||||||
assert_equal 'paella.jpg', attachment.filename
|
assert_equal 'paella.jpg', attachment.filename
|
||||||
assert_equal 10790, attachment.filesize
|
assert_equal 10790, attachment.filesize
|
||||||
|
assert File.exist?(attachment.diskfile)
|
||||||
|
assert_equal 10790, File.size(attachment.diskfile)
|
||||||
|
assert_equal 'caaf384198bcbc9563ab5c058acd73cd', attachment.digest
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_should_ignore_emails_from_emission_address
|
def test_should_ignore_emails_from_emission_address
|
||||||
|
|
Loading…
Reference in New Issue