From 64b59f150264a34001681a3a41fd05be199fc1d3 Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Sun, 29 Jan 2012 11:24:48 +0000 Subject: [PATCH] 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 --- test/unit/mail_handler_test.rb | 3 +++ 1 file changed, 3 insertions(+) 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