Skip to content

Commit 55845c2

Browse files
author
Jerry Cheung
committed
previous test was filtering to one user
this updates it to test the size parameter works cc @mtodd @randx
1 parent a748ddf commit 55845c2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/integration/test_search.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,12 +66,12 @@ def test_search_timeout
6666
def test_search_with_size
6767
entries = []
6868

69-
result = @ldap.search(filter: "(uid=user1)", base: "dc=rubyldap,dc=com", size: 1) do |entry|
69+
result = @ldap.search(base: "dc=rubyldap,dc=com", size: 1) do |entry|
7070
assert_kind_of Net::LDAP::Entry, entry
7171
entries << entry
7272
end
7373

74-
refute entries.empty?
74+
assert_equal 1, result.size
7575
assert_equal entries, result
7676
end
7777
end

0 commit comments

Comments
 (0)