Skip to content

Commit ba0792c

Browse files
author
Jerry Cheung
committed
add test for validator detection
1 parent f506dc3 commit ba0792c

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

test/ldap_test.rb

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,14 @@ def test_instruments_search
7272
assert_equal "(uid=user1)", payload[:filter].to_s
7373
assert_equal "dc=github,dc=com", payload[:base]
7474
end
75+
76+
def test_membership_validator_default
77+
assert_equal :detect, @ldap.membership_validator
78+
end
79+
80+
def test_capabilities
81+
assert_kind_of Net::LDAP::Entry, @ldap.capabilities
82+
end
7583
end
7684

7785
class GitHubLdapTest < GitHub::Ldap::Test

0 commit comments

Comments
 (0)