summaryrefslogtreecommitdiff
path: root/spec/rubyspec/library/digest/md5/shared/update.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/rubyspec/library/digest/md5/shared/update.rb')
-rw-r--r--spec/rubyspec/library/digest/md5/shared/update.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/spec/rubyspec/library/digest/md5/shared/update.rb b/spec/rubyspec/library/digest/md5/shared/update.rb
new file mode 100644
index 0000000000..be8622aed5
--- /dev/null
+++ b/spec/rubyspec/library/digest/md5/shared/update.rb
@@ -0,0 +1,7 @@
+describe :md5_update, shared: true do
+ it "can update" do
+ cur_digest = Digest::MD5.new
+ cur_digest.send @method, MD5Constants::Contents
+ cur_digest.digest.should == MD5Constants::Digest
+ end
+end