diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2017-04-03 11:11:36 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2017-04-03 11:11:36 +0000 |
commit | 30f7be9c19777d2b8ec88507a466bd35ffa523e3 (patch) | |
tree | a0af4006841932b16b26b275906f6fd807194caf /test/unit/attachment_test.rb | |
parent | 9441ab0ca8e8c4a51bf6716dbdaae0aea4f3fa21 (diff) | |
download | redmine-30f7be9c19777d2b8ec88507a466bd35ffa523e3.tar.gz redmine-30f7be9c19777d2b8ec88507a466bd35ffa523e3.zip |
Changes the digest used for attachments to SHA256 (#25240).
Patch by Jens Kraemer.
git-svn-id: http://svn.redmine.org/redmine/trunk@16454 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit/attachment_test.rb')
-rw-r--r-- | test/unit/attachment_test.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/unit/attachment_test.rb b/test/unit/attachment_test.rb index 81d7e3cbd..a70009d23 100644 --- a/test/unit/attachment_test.rb +++ b/test/unit/attachment_test.rb @@ -62,7 +62,7 @@ class AttachmentTest < ActiveSupport::TestCase assert_equal 59, a.filesize assert_equal 'text/plain', a.content_type assert_equal 0, a.downloads - assert_equal '1478adae0d4eb06d35897518540e25d6', a.digest + assert_equal '6bc2eb7e87cfbf9145065689aaa8b5f513089ca0af68e2dc41f9cc025473d106', a.digest assert a.disk_directory assert_match %r{\A\d{4}/\d{2}\z}, a.disk_directory @@ -188,7 +188,7 @@ class AttachmentTest < ActiveSupport::TestCase assert_equal 59, a.filesize assert_equal 'text/plain', a.content_type assert_equal 0, a.downloads - assert_equal '1478adae0d4eb06d35897518540e25d6', a.digest + assert_equal '6bc2eb7e87cfbf9145065689aaa8b5f513089ca0af68e2dc41f9cc025473d106', a.digest diskfile = a.diskfile assert File.exist?(diskfile) assert_equal 59, File.size(a.diskfile) |