]> source.dussan.org Git - redmine.git/commitdiff
Safer assertion.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Fri, 31 Dec 2010 15:24:42 +0000 (15:24 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Fri, 31 Dec 2010 15:24:42 +0000 (15:24 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4598 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/unit/attachment_test.rb

index 4ac10e31f65ee3df18b40bc3be601a01d3ffeb02..ad88735089256f9288970b92d4566e576b7cbcf0 100644 (file)
@@ -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