##// END OF EJS Templates
Safer assertion....
Jean-Philippe Lang -
r4478:92d34234b01f
parent child
Show More
@@ -34,7 +34,7 class AttachmentTest < ActiveSupport::TestCase
34 34 assert_equal 59, a.filesize
35 35 assert_equal 'text/plain', a.content_type
36 36 assert_equal 0, a.downloads
37 assert_equal Digest::MD5.hexdigest(uploaded_test_file("testfile.txt", "text/plain").read), a.digest
37 assert_equal '1478adae0d4eb06d35897518540e25d6', a.digest
38 38 assert File.exist?(a.diskfile)
39 39 end
40 40
General Comments 0
You need to be logged in to leave comments. Login now