summaryrefslogtreecommitdiffstats
path: root/spec/integration/node
diff options
context:
space:
mode:
authorLuke Kanies <luke@madstop.com>2008-07-08 15:03:13 -0500
committerLuke Kanies <luke@madstop.com>2008-07-08 15:03:13 -0500
commitc1dc92b9a14c04096e0bed0f2c4acc4dfe1ed7d2 (patch)
treeb3269b4e76edbcb3458fcdf1832421fb11e57890 /spec/integration/node
parentb0febd263c0cb8e61d512898f7c79868ea77e619 (diff)
parentedf99c508dabb58342eeff251ad5701d2755426d (diff)
downloadpuppet-c1dc92b9a14c04096e0bed0f2c4acc4dfe1ed7d2.tar.gz
puppet-c1dc92b9a14c04096e0bed0f2c4acc4dfe1ed7d2.tar.xz
puppet-c1dc92b9a14c04096e0bed0f2c4acc4dfe1ed7d2.zip
Merge branch '0.24.x'
Conflicts: CHANGELOG
Diffstat (limited to 'spec/integration/node')
-rwxr-xr-xspec/integration/node/catalog.rb6
-rwxr-xr-xspec/integration/node/facts.rb6
2 files changed, 6 insertions, 6 deletions
diff --git a/spec/integration/node/catalog.rb b/spec/integration/node/catalog.rb
index 285b85869..87d62ea6a 100755
--- a/spec/integration/node/catalog.rb
+++ b/spec/integration/node/catalog.rb
@@ -19,10 +19,10 @@ describe Puppet::Node::Catalog do
Puppet::Node::Catalog.indirection.stubs(:terminus_class).returns :yaml
# Load now, before we stub the exists? method.
- Puppet::Node::Catalog.indirection.terminus(:yaml)
+ terminus = Puppet::Node::Catalog.indirection.terminus(:yaml)
+ terminus.expects(:path).with("me").returns "/my/yaml/file"
- file = File.join(Puppet[:yamldir], "catalog", "me.yaml")
- FileTest.expects(:exist?).with(file).returns false
+ FileTest.expects(:exist?).with("/my/yaml/file").returns false
Puppet::Node::Catalog.find("me").should be_nil
end
diff --git a/spec/integration/node/facts.rb b/spec/integration/node/facts.rb
index cef3d79d4..5a54a6e49 100755
--- a/spec/integration/node/facts.rb
+++ b/spec/integration/node/facts.rb
@@ -26,10 +26,10 @@ describe Puppet::Node::Facts do
Puppet::Node::Facts.indirection.stubs(:terminus_class).returns :yaml
# Load now, before we stub the exists? method.
- Puppet::Node::Facts.indirection.terminus(:yaml)
+ terminus = Puppet::Node::Facts.indirection.terminus(:yaml)
- file = File.join(Puppet[:yamldir], "facts", "me.yaml")
- FileTest.expects(:exist?).with(file).returns false
+ terminus.expects(:path).with("me").returns "/my/yaml/file"
+ FileTest.expects(:exist?).with("/my/yaml/file").returns false
Puppet::Node::Facts.find("me").should be_nil
end