diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2012-01-29 11:24:48 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2012-01-29 11:24:48 +0000 |
commit | 64b59f150264a34001681a3a41fd05be199fc1d3 (patch) | |
tree | ac51fb177da020feab6cd179494598b94b238102 /test/unit/mail_handler_test.rb | |
parent | f49d8d8c5f5fe9070f911c6767997f5667f00b3a (diff) | |
download | redmine-64b59f150264a34001681a3a41fd05be199fc1d3.tar.gz redmine-64b59f150264a34001681a3a41fd05be199fc1d3.zip |
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
Diffstat (limited to 'test/unit/mail_handler_test.rb')
-rw-r--r-- | test/unit/mail_handler_test.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/unit/mail_handler_test.rb b/test/unit/mail_handler_test.rb index 889efb6f3..5a1ba61c3 100644 --- a/test/unit/mail_handler_test.rb +++ b/test/unit/mail_handler_test.rb @@ -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 |