summaryrefslogtreecommitdiff
path: root/spec/ruby/library/digest/instance/shared/update.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/library/digest/instance/shared/update.rb')
-rw-r--r--spec/ruby/library/digest/instance/shared/update.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/spec/ruby/library/digest/instance/shared/update.rb b/spec/ruby/library/digest/instance/shared/update.rb
new file mode 100644
index 0000000000..dccc8f80df
--- /dev/null
+++ b/spec/ruby/library/digest/instance/shared/update.rb
@@ -0,0 +1,8 @@
+describe :digest_instance_update, shared: true do
+ it "raises a RuntimeError if called" do
+ c = Class.new do
+ include Digest::Instance
+ end
+ -> { c.new.update("test") }.should raise_error(RuntimeError)
+ end
+end