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 | |
| 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')
| -rwxr-xr-x | spec/integration/node/catalog.rb | 6 | ||||
| -rwxr-xr-x | spec/integration/node/facts.rb | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/spec/integration/node/catalog.rb b/spec/integration/node/catalog.rb index 941d2cc6c..1fa2afbb0 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 c2f876578..a5d3e6964 100755 --- a/spec/integration/node/facts.rb +++ b/spec/integration/node/facts.rb @@ -24,10 +24,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 |
