1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Test checksumming

This commit is contained in:
David Heinemeier Hansson 2017-07-01 12:28:47 +02:00
parent 8ec90d0b93
commit a239abb7fc

View file

@ -36,4 +36,8 @@ class ActiveFile::DiskSiteTest < ActiveSupport::TestCase
test "sizing" do
assert_equal FIXTURE_FILE.size, @site.size(FIXTURE_KEY)
end
test "checksumming" do
assert_equal Digest::MD5.hexdigest(FIXTURE_FILE.read), @site.checksum(FIXTURE_KEY)
end
end