blob: c0609d538627dc6b5df5b65e3cc6e5f8249f440d (
plain)
1
2
3
4
5
6
7
8
|
describe :sha512_length, shared: true do
it "returns the length of the digest" do
cur_digest = Digest::SHA512.new
cur_digest.send(@method).should == SHA512Constants::BlankDigest.size
cur_digest << SHA512Constants::Contents
cur_digest.send(@method).should == SHA512Constants::Digest.size
end
end
|