diff options
Diffstat (limited to 'spec/rubyspec/library/digest/sha256/shared')
-rw-r--r-- | spec/rubyspec/library/digest/sha256/shared/constants.rb | 17 | ||||
-rw-r--r-- | spec/rubyspec/library/digest/sha256/shared/length.rb | 8 | ||||
-rw-r--r-- | spec/rubyspec/library/digest/sha256/shared/update.rb | 7 |
3 files changed, 0 insertions, 32 deletions
diff --git a/spec/rubyspec/library/digest/sha256/shared/constants.rb b/spec/rubyspec/library/digest/sha256/shared/constants.rb deleted file mode 100644 index dd5b48dca9..0000000000 --- a/spec/rubyspec/library/digest/sha256/shared/constants.rb +++ /dev/null @@ -1,17 +0,0 @@ -# -*- encoding: binary -*- - -require 'digest/sha2' - -module SHA256Constants - - Contents = "Ipsum is simply dummy text of the printing and typesetting industry. \nLorem Ipsum has been the industrys standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. \nIt has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. \nIt was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum." - - Klass = ::Digest::SHA256 - BlockLength = 64 - DigestLength = 32 - BlankDigest = "\343\260\304B\230\374\034\024\232\373\364\310\231o\271$'\256A\344d\233\223L\244\225\231\exR\270U" - Digest = "\230b\265\344_\337\357\337\242\004\314\311A\211jb\350\373\254\370\365M\230B\002\372\020j\as\270\376" - BlankHexdigest = "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855" - Hexdigest = "9862b5e45fdfefdfa204ccc941896a62e8fbacf8f54d984202fa106a0773b8fe" - -end diff --git a/spec/rubyspec/library/digest/sha256/shared/length.rb b/spec/rubyspec/library/digest/sha256/shared/length.rb deleted file mode 100644 index 996673a5bd..0000000000 --- a/spec/rubyspec/library/digest/sha256/shared/length.rb +++ /dev/null @@ -1,8 +0,0 @@ -describe :sha256_length, shared: true do - it "returns the length of the digest" do - cur_digest = Digest::SHA256.new - cur_digest.send(@method).should == SHA256Constants::BlankDigest.size - cur_digest << SHA256Constants::Contents - cur_digest.send(@method).should == SHA256Constants::Digest.size - end -end diff --git a/spec/rubyspec/library/digest/sha256/shared/update.rb b/spec/rubyspec/library/digest/sha256/shared/update.rb deleted file mode 100644 index 0edc07935b..0000000000 --- a/spec/rubyspec/library/digest/sha256/shared/update.rb +++ /dev/null @@ -1,7 +0,0 @@ -describe :sha256_update, shared: true do - it "can update" do - cur_digest = Digest::SHA256.new - cur_digest.send @method, SHA256Constants::Contents - cur_digest.digest.should == SHA256Constants::Digest - end -end |