Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix MD5 checksumming in test that detect duplicates

`Digest::MD5.file` returns an Digest::MD5 instance, not a string
representing the checksum.
  • Loading branch information...
commit 2b26bb9b0d7e8b5dd779562b955a129d9d1b9a65 1 parent be4946f
@mislav mislav authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  test/integrity_test.rb
View
2  test/integrity_test.rb
@@ -20,7 +20,7 @@ class IntegrityTest < TestCase
test "images on disk have no duplicates" do
hashes = Hash.new { |h,k| h[k] = [] }
Dir["#{Emoji.images_path}/**/*.png"].each do |image_file|
- checksum = Digest::MD5.file(image_file)
+ checksum = Digest::MD5.file(image_file).to_s
hashes[checksum] << image_file
end

0 comments on commit 2b26bb9

Please sign in to comment.
Something went wrong with that request. Please try again.