File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
test/membership_validators Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 5
5
# and test against what AD *would* respond with.
6
6
7
7
class GitHubLdapDetectMembershipValidatorsTest < GitHub ::Ldap ::Test
8
+ include GitHub ::Ldap ::Capabilities
9
+
8
10
def setup
9
11
@ldap = GitHub ::Ldap . new ( options . merge ( search_domains : %w( dc=github,dc=com ) ) )
10
12
@domain = @ldap . domain ( "dc=github,dc=com" )
@@ -26,8 +28,7 @@ def test_defers_to_configured_strategy
26
28
27
29
def test_detects_active_directory
28
30
caps = Net ::LDAP ::Entry . new
29
- caps [ :supportedcapabilities ] =
30
- [ GitHub ::Ldap ::MembershipValidators ::Detect ::ACTIVE_DIRECTORY_V61_R2_OID ]
31
+ caps [ :supportedcapabilities ] = [ ACTIVE_DIRECTORY_V61_R2_OID ]
31
32
32
33
validator = make_validator ( %w( group ) )
33
34
@ldap . stub :capabilities , caps do
You can’t perform that action at this time.
0 commit comments