diff options
| author | Luke Kanies <luke@madstop.com> | 2008-06-10 00:45:41 -0500 |
|---|---|---|
| committer | Luke Kanies <luke@madstop.com> | 2008-06-15 13:31:47 -0500 |
| commit | fb4e84321d47c5ebe31d257e1f7e0037a9ff34c1 (patch) | |
| tree | b7780839cb6af12bc3d516854b8564aa00b9ed6b /spec | |
| parent | 317af3608caae060d15b407fe0b78304f355c106 (diff) | |
| download | puppet-fb4e84321d47c5ebe31d257e1f7e0037a9ff34c1.tar.gz puppet-fb4e84321d47c5ebe31d257e1f7e0037a9ff34c1.tar.xz puppet-fb4e84321d47c5ebe31d257e1f7e0037a9ff34c1.zip | |
Refactoring the 'find' method a bit in the LDAP Node terminus.
This just splits the method into smaller pieces, so it's a
bit easier to maintain.
Diffstat (limited to 'spec')
| -rwxr-xr-x | spec/unit/indirector/node/ldap.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/unit/indirector/node/ldap.rb b/spec/unit/indirector/node/ldap.rb index 878039c7c..4508ad9c0 100755 --- a/spec/unit/indirector/node/ldap.rb +++ b/spec/unit/indirector/node/ldap.rb @@ -21,9 +21,9 @@ describe Puppet::Node::Ldap do @searcher.stubs(:search_base).returns(:yay) @searcher.stubs(:search_filter).returns(:filter) - @node = mock 'node' - @node.stubs(:fact_merge) @name = "mynode" + @node = stub 'node', :name => @name + @node.stubs(:fact_merge) Puppet::Node.stubs(:new).with(@name).returns(@node) @request = stub 'request', :key => @name |
