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