aboutsummaryrefslogtreecommitdiffstats
path: root/spec/rubyspec/library/digest/sha512/digest_length_spec.rb
blob: 5185b6e90661e7b43375572ef09c43359db8e9b8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
require File.expand_path('../../../../spec_helper', __FILE__)
require File.expand_path('../shared/constants', __FILE__)

describe "Digest::SHA512#digest_length" do

  it "returns the length of computed digests" do
    cur_digest = Digest::SHA512.new
    cur_digest.digest_length.should == SHA512Constants::DigestLength
  end

end