Safer assertion.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4598 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2010-12-31 15:24:42 +00:00
parent 3eebd827d7
commit 92d34234b0
1 changed files with 1 additions and 1 deletions

View File

@ -34,7 +34,7 @@ class AttachmentTest < ActiveSupport::TestCase
assert_equal 59, a.filesize assert_equal 59, a.filesize
assert_equal 'text/plain', a.content_type assert_equal 'text/plain', a.content_type
assert_equal 0, a.downloads assert_equal 0, a.downloads
assert_equal Digest::MD5.hexdigest(uploaded_test_file("testfile.txt", "text/plain").read), a.digest assert_equal '1478adae0d4eb06d35897518540e25d6', a.digest
assert File.exist?(a.diskfile) assert File.exist?(a.diskfile)
end end