diff options
author | Luke Kanies <luke@madstop.com> | 2008-07-07 17:21:03 -0500 |
---|---|---|
committer | Luke Kanies <luke@madstop.com> | 2008-07-07 17:21:03 -0500 |
commit | 19b76c7910f1ee92ee00b7d746e5bc8f15ed59fe (patch) | |
tree | 91efd65ede96a416fd6a5257296db61eae5ebabc /spec/integration/node.rb | |
parent | 81be1c5c3f85f514505e99fab5b8a2b2ae6fbec8 (diff) | |
download | puppet-19b76c7910f1ee92ee00b7d746e5bc8f15ed59fe.tar.gz puppet-19b76c7910f1ee92ee00b7d746e5bc8f15ed59fe.tar.xz puppet-19b76c7910f1ee92ee00b7d746e5bc8f15ed59fe.zip |
Fixing #1401 - integration tests now work regardless of the yamldir.
Signed-off-by: Luke Kanies <luke@madstop.com>
Diffstat (limited to 'spec/integration/node.rb')
-rwxr-xr-x | spec/integration/node.rb | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/spec/integration/node.rb b/spec/integration/node.rb index b0375e743..de95d0e79 100755 --- a/spec/integration/node.rb +++ b/spec/integration/node.rb @@ -31,10 +31,11 @@ describe Puppet::Node do Puppet::Node.indirection.stubs(:terminus_class).returns :yaml # Load now, before we stub the exists? method. - Puppet::Node.indirection.terminus(:yaml) + terminus = Puppet::Node.indirection.terminus(:yaml) - file = File.join(Puppet[:yamldir], "node", "me.yaml") - FileTest.expects(:exist?).with(file).returns false + terminus.expects(:path).with(@name).returns "/my/yaml/file" + + FileTest.expects(:exist?).with("/my/yaml/file").returns false Puppet::Node.find(@name).should be_nil end |