diff options
Diffstat (limited to 'spec/ruby/library/digest/sha512/length_spec.rb')
| -rw-r--r-- | spec/ruby/library/digest/sha512/length_spec.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/spec/ruby/library/digest/sha512/length_spec.rb b/spec/ruby/library/digest/sha512/length_spec.rb new file mode 100644 index 0000000000..8e909482c5 --- /dev/null +++ b/spec/ruby/library/digest/sha512/length_spec.rb @@ -0,0 +1,11 @@ +require_relative '../../../spec_helper' +require_relative 'shared/constants' + +describe "Digest::SHA512#length" do + it "returns the length of the digest" do + cur_digest = Digest::SHA512.new + cur_digest.length.should == SHA512Constants::BlankDigest.size + cur_digest << SHA512Constants::Contents + cur_digest.length.should == SHA512Constants::Digest.size + end +end |
