summaryrefslogtreecommitdiffstats
path: root/spec/integration/node
diff options
context:
space:
mode:
authorLuke Kanies <luke@madstop.com>2008-11-11 10:47:32 -0600
committerLuke Kanies <luke@madstop.com>2008-11-11 12:53:37 -0800
commit14af971bc618d665f481142934b2f612d503823c (patch)
tree08804f17e7b75110d0ea584583e235c8a4778cd0 /spec/integration/node
parent99a0770a30c7c9a1349fd693cda31bdbf2717864 (diff)
downloadpuppet-14af971bc618d665f481142934b2f612d503823c.tar.gz
puppet-14af971bc618d665f481142934b2f612d503823c.tar.xz
puppet-14af971bc618d665f481142934b2f612d503823c.zip
Changing the Cacher.invalidate method to Cacher.expire.
Signed-off-by: Luke Kanies <luke@madstop.com>
Diffstat (limited to 'spec/integration/node')
-rwxr-xr-xspec/integration/node/catalog.rb2
-rwxr-xr-xspec/integration/node/facts.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/spec/integration/node/catalog.rb b/spec/integration/node/catalog.rb
index 75be9501a..438f92834 100755
--- a/spec/integration/node/catalog.rb
+++ b/spec/integration/node/catalog.rb
@@ -7,7 +7,7 @@ require File.dirname(__FILE__) + '/../../spec_helper'
describe Puppet::Node::Catalog do
describe "when using the indirector" do
- after { Puppet::Util::Cacher.invalidate }
+ after { Puppet::Util::Cacher.expire }
before do
# This is so the tests work w/out networking.
Facter.stubs(:to_hash).returns({"hostname" => "foo.domain.com"})
diff --git a/spec/integration/node/facts.rb b/spec/integration/node/facts.rb
index 5a54a6e49..0a4d21ed6 100755
--- a/spec/integration/node/facts.rb
+++ b/spec/integration/node/facts.rb
@@ -7,7 +7,7 @@ require File.dirname(__FILE__) + '/../../spec_helper'
describe Puppet::Node::Facts do
describe "when using the indirector" do
- after { Puppet::Util::Cacher.invalidate }
+ after { Puppet::Util::Cacher.expire }
it "should expire any cached node instances when it is saved" do
Puppet::Node::Facts.indirection.stubs(:terminus_class).returns :yaml