diff options
Diffstat (limited to 'spec/ruby/library/digest/sha384/shared/length.rb')
-rw-r--r-- | spec/ruby/library/digest/sha384/shared/length.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/spec/ruby/library/digest/sha384/shared/length.rb b/spec/ruby/library/digest/sha384/shared/length.rb new file mode 100644 index 0000000000..0c88288bcf --- /dev/null +++ b/spec/ruby/library/digest/sha384/shared/length.rb @@ -0,0 +1,8 @@ +describe :sha384_length, shared: true do + it "returns the length of the digest" do + cur_digest = Digest::SHA384.new + cur_digest.send(@method).should == SHA384Constants::BlankDigest.size + cur_digest << SHA384Constants::Contents + cur_digest.send(@method).should == SHA384Constants::Digest.size + end +end |