Skip to content

Commit a604bef

Browse files
author
Jerry Cheung
committed
test attributes_only
1 parent 19b0b08 commit a604bef

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

test/integration/test_search.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,4 +47,10 @@ def test_search_size
4747

4848
assert_equal 2, entries.size
4949
end
50+
51+
def test_search_attributes_only
52+
entry = @ldap.search(base: "uid=user1,ou=People,dc=rubyldap,dc=com", attributes_only: true).first
53+
54+
assert_empty entry[:cn], "unexpected attribute value: #{entry[:cn]}"
55+
end
5056
end

0 commit comments

Comments
 (0)