diff --git a/test/unit/attachment_test.rb b/test/unit/attachment_test.rb index 4ac10e31..ad887350 100644 --- a/test/unit/attachment_test.rb +++ b/test/unit/attachment_test.rb @@ -34,7 +34,7 @@ class AttachmentTest < ActiveSupport::TestCase assert_equal 59, a.filesize assert_equal 'text/plain', a.content_type 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) end