Skip to content

Commit

Permalink
Fix shared test digest_instance_update
Browse files Browse the repository at this point in the history
Use the provided method instead. This fixes the `Digest::Instance#<<`
spec, it now does what it says it does.
  • Loading branch information
herwinw committed Nov 17, 2023
1 parent ca1073c commit 8784941
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/digest/instance/shared/update.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
c = Class.new do
include Digest::Instance
end
-> { c.new.update("test") }.should raise_error(RuntimeError)
-> { c.new.send(@method, "test") }.should raise_error(RuntimeError)
end
end

0 comments on commit 8784941

Please sign in to comment.