mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Test checksumming
This commit is contained in:
parent
8ec90d0b93
commit
a239abb7fc
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue