Skip to content

Commit

Permalink
[rubygems/rubygems] Set the expected hash in one step
Browse files Browse the repository at this point in the history
  • Loading branch information
deivid-rodriguez authored and hsbt committed Jul 31, 2020
1 parent 3452792 commit 779f1a9
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions test/rubygems/test_gem_package.rb
Expand Up @@ -91,14 +91,13 @@ def test_add_checksums
'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

Expand Down

0 comments on commit 779f1a9

Please sign in to comment.