Sha256: 4309870fc96bf75520350d2abda46bd7db625060e5ab61d0006dd62f0d613281
Contents?: true
Size: 672 Bytes
Versions: 4
Compression:
Stored size: 672 Bytes
Contents
require 'helper' class PwnedTest < Test::Unit::TestCase #Minitest::Test def test_abc123_is_found assert_equal true, HaveIBeenPwned::pwned('abc123') end def test_password_is_found assert_equal true, HaveIBeenPwned::pwned('password') end def test_crazy_long_password_is_not_found assert_equal false, HaveIBeenPwned::pwned('dfsfk;lngfdsjlmkvsdlmjkvf8um54b89u5438mu0p435u0m5b409u54b09um5309um50u9m3b56u90m54jmgtrgv') end def test_not_actually_providing_a_password_is_silly assert_equal false, HaveIBeenPwned::pwned('') end def test_no_password_at_all_raises assert_raise("RuntimeError") { HaveIBeenPwned::pwned } end end
Version data entries
4 entries across 4 versions & 1 rubygems