Verify that the encryption type is properly normalized.

This commit is contained in:
David Calavera 2013-07-09 12:19:42 -07:00
Родитель 7674c43197
Коммит 3ff4e5442a
1 изменённых файлов: 2 добавлений и 0 удалений

Просмотреть файл

@ -21,11 +21,13 @@ class GitHubLdapTest < Minitest::Test
def test_simple_tls def test_simple_tls
assert_equal :simple_tls, @ldap.check_encryption(:ssl) assert_equal :simple_tls, @ldap.check_encryption(:ssl)
assert_equal :simple_tls, @ldap.check_encryption('SSL')
assert_equal :simple_tls, @ldap.check_encryption(:simple_tls) assert_equal :simple_tls, @ldap.check_encryption(:simple_tls)
end end
def test_start_tls def test_start_tls
assert_equal :start_tls, @ldap.check_encryption(:tls) assert_equal :start_tls, @ldap.check_encryption(:tls)
assert_equal :start_tls, @ldap.check_encryption('TLS')
assert_equal :start_tls, @ldap.check_encryption(:start_tls) assert_equal :start_tls, @ldap.check_encryption(:start_tls)
end end
end end