Skip to content

Commit f4abd51

Browse files
committed
Test another scenario from our app
1 parent abdcc08 commit f4abd51

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

test/test_insecure_hash_algorithm.rb

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -362,4 +362,16 @@ class Something
362362
RUBY
363363
assert_equal 0, cop.offenses.count
364364
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+
end
374+
RUBY
375+
assert_equal 0, cop.offenses.count
376+
end
365377
end

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy