diff options
| author | Luke Kanies <luke@madstop.com> | 2008-11-11 10:47:32 -0600 |
|---|---|---|
| committer | Luke Kanies <luke@madstop.com> | 2008-11-11 12:53:37 -0800 |
| commit | 14af971bc618d665f481142934b2f612d503823c (patch) | |
| tree | 08804f17e7b75110d0ea584583e235c8a4778cd0 /spec/unit/node | |
| parent | 99a0770a30c7c9a1349fd693cda31bdbf2717864 (diff) | |
| download | puppet-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/unit/node')
| -rwxr-xr-x | spec/unit/node/catalog.rb | 4 | ||||
| -rwxr-xr-x | spec/unit/node/facts.rb | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/spec/unit/node/catalog.rb b/spec/unit/node/catalog.rb index 63aa2f60c..28d66644a 100755 --- a/spec/unit/node/catalog.rb +++ b/spec/unit/node/catalog.rb @@ -860,7 +860,7 @@ describe Puppet::Node::Catalog, " when indirecting" do before do @indirection = stub 'indirection', :name => :catalog - Puppet::Util::Cacher.invalidate + Puppet::Util::Cacher.expire end it "should redirect to the indirection for retrieval" do @@ -874,7 +874,7 @@ describe Puppet::Node::Catalog, " when indirecting" do end after do - Puppet::Util::Cacher.invalidate + Puppet::Util::Cacher.expire end end diff --git a/spec/unit/node/facts.rb b/spec/unit/node/facts.rb index 69b8e4483..f12e20404 100755 --- a/spec/unit/node/facts.rb +++ b/spec/unit/node/facts.rb @@ -10,7 +10,7 @@ describe Puppet::Node::Facts, " when indirecting" do # We have to clear the cache so that the facts ask for our indirection stub, # instead of anything that might be cached. - Puppet::Util::Cacher.invalidate + Puppet::Util::Cacher.expire @facts = Puppet::Node::Facts.new("me", "one" => "two") end |
