Skip to content

Commit 4f774fd

Browse files
committed
Include Capabilities to reuse constant
1 parent 05cb39c commit 4f774fd

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

test/membership_validators/detect_test.rb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
# and test against what AD *would* respond with.
66

77
class GitHubLdapDetectMembershipValidatorsTest < GitHub::Ldap::Test
8+
include GitHub::Ldap::Capabilities
9+
810
def setup
911
@ldap = GitHub::Ldap.new(options.merge(search_domains: %w(dc=github,dc=com)))
1012
@domain = @ldap.domain("dc=github,dc=com")
@@ -26,8 +28,7 @@ def test_defers_to_configured_strategy
2628

2729
def test_detects_active_directory
2830
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]
3132

3233
validator = make_validator(%w(group))
3334
@ldap.stub :capabilities, caps do

0 commit comments

Comments
 (0)