summaryrefslogtreecommitdiffstats
path: root/spec/unit/indirector/ldap.rb
diff options
context:
space:
mode:
authorLuke Kanies <luke@madstop.com>2007-09-22 01:24:04 -0500
committerLuke Kanies <luke@madstop.com>2007-09-22 01:24:04 -0500
commita66699596452f88d2bc467af4cff3f9a1aec3d1e (patch)
treef24e797d1709e27374692f079980167d5f136daf /spec/unit/indirector/ldap.rb
parentebe7290bf0c9119e268c9037c33da515e527aa5b (diff)
downloadpuppet-a66699596452f88d2bc467af4cff3f9a1aec3d1e.tar.gz
puppet-a66699596452f88d2bc467af4cff3f9a1aec3d1e.tar.xz
puppet-a66699596452f88d2bc467af4cff3f9a1aec3d1e.zip
Adding the last tests for the ldap node terminus. I managed
to forget the tests around the main find() method.
Diffstat (limited to 'spec/unit/indirector/ldap.rb')
-rwxr-xr-xspec/unit/indirector/ldap.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/unit/indirector/ldap.rb b/spec/unit/indirector/ldap.rb
index a936936bc..fe9408986 100755
--- a/spec/unit/indirector/ldap.rb
+++ b/spec/unit/indirector/ldap.rb
@@ -78,7 +78,7 @@ describe Puppet::Indirector::Ldap, " when searching ldap" do
it "should call process() on the first found entry" do
@connection.expects(:search).yields("myresult")
- @searcher.expects(:process).with("myresult")
+ @searcher.expects(:process).with("yay", "myresult")
@searcher.find "yay"
end
@@ -92,7 +92,7 @@ describe Puppet::Indirector::Ldap, " when searching ldap" do
raise "failed"
end
end.yields("myresult")
- @searcher.expects(:process).with("myresult")
+ @searcher.expects(:process).with("yay", "myresult")
@searcher.find "yay"
end