We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1143676 commit df990abCopy full SHA for df990ab
test/forest_search_test.rb
@@ -12,7 +12,11 @@ def setup
12
@forest_search = GitHub::Ldap::ForestSearch.new(@connection, configuration_naming_context)
13
end
14
15
- def test_search
+ def test_uses_connection_search_when_no_forest_present
16
+ # First search returns an empty Hash of domain controllers
17
+ @connection.expects(:search).returns({})
18
+ # Since the forest is empty, should fall back on the base connection
19
+ @connection.expects(:search)
20
@forest_search.search({})
21
assert true
22
0 commit comments