We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent abdcc08 commit f4abd51Copy full SHA for f4abd51
1 file changed
test/test_insecure_hash_algorithm.rb
@@ -362,4 +362,16 @@ class Something
362
RUBY
363
assert_equal 0, cop.offenses.count
364
end
365
+
366
+ def test_allow_other_digest_types
367
+ cop = make_cop "Allowed" => %w[UUID]
368
+ investigate(cop, <<-RUBY)
369
+ class Something
370
+ def uuid
371
+ Digest::UUID.create
372
+ end
373
374
+ RUBY
375
+ assert_equal 0, cop.offenses.count
376
377
0 commit comments