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

[rubygems/rubygems] Set the expected hash in one step

https://github.com/rubygems/rubygems/commit/25912ce6c9
This commit is contained in:
David Rodríguez 2020-07-11 10:48:52 +02:00 committed by Hiroshi SHIBATA
parent 34527927e8
commit 779f1a9c69
Notes: git 2020-07-31 21:08:15 +09:00

View file

@ -91,14 +91,13 @@ class TestGemPackage < Gem::Package::TarTestCase
'SHA512' => {
'metadata.gz' => metadata_sha512,
'data.tar.gz' => Digest::SHA512.hexdigest(tar),
},
'SHA256' => {
'metadata.gz' => metadata_sha256,
'data.tar.gz' => Digest::SHA256.hexdigest(tar),
}
}
expected['SHA256'] = {
'metadata.gz' => metadata_sha256,
'data.tar.gz' => Digest::SHA256.hexdigest(tar),
}
assert_equal expected, YAML.load(checksums)
end