Sha256: e3b50e963322ff502abee29217d37dc4d17127ee555e8bcfc8b2802994087cfb

Contents?: true

Size: 303 Bytes

Versions: 9

Compression:

Stored size: 303 Bytes

Contents

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

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
rubysl-digest-2.1 spec/md5/shared/length.rb
rubysl-digest-1.2.0 spec/md5/shared/length.rb
rubysl-digest-1.1.0 spec/md5/shared/length.rb
rubysl-digest-2.0.8 spec/md5/shared/length.rb
rubysl-digest-2.0.7 spec/md5/shared/length.rb
rubysl-digest-1.0.1 spec/md5/shared/length.rb
rubysl-digest-2.0.3 spec/md5/shared/length.rb
rubysl-digest-1.0.0 spec/md5/shared/length.rb
rubysl-digest-2.0.2 spec/md5/shared/length.rb