1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/spec/ruby/library/digest/instance/shared/update.rb
2020-09-30 12:21:48 +02:00

8 lines
227 B
Ruby

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