Skip to content

Commit

Permalink
Fix MD5 checksumming in test that detect duplicates
Browse files Browse the repository at this point in the history
`Digest::MD5.file` returns an Digest::MD5 instance, not a string
representing the checksum.
  • Loading branch information
mislav committed Jul 4, 2014
1 parent be4946f commit 2b26bb9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/integrity_test.rb
Expand Up @@ -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

Expand Down

0 comments on commit 2b26bb9

Please sign in to comment.