blob: fe67136c97b482c14954cfc3b984f9ed75be2d92 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
require File.expand_path('../../../../spec_helper', __FILE__)
require File.expand_path('../shared/constants', __FILE__)
describe "Digest::MD5#hexdigest!" do
it "returns a hexdigest and resets the state" do
cur_digest = Digest::MD5.new
cur_digest << MD5Constants::Contents
cur_digest.hexdigest!.should == MD5Constants::Hexdigest
cur_digest.hexdigest.should == MD5Constants::BlankHexdigest
end
end
|