diff options
Diffstat (limited to 'spec/unit/node')
| -rwxr-xr-x | spec/unit/node/catalog.rb | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/spec/unit/node/catalog.rb b/spec/unit/node/catalog.rb index 28d66644a..3c4da5908 100755 --- a/spec/unit/node/catalog.rb +++ b/spec/unit/node/catalog.rb @@ -611,8 +611,11 @@ describe Puppet::Node::Catalog do @transaction.stubs(:addtimes) end - describe "when applying" do + it "should be an Expirer" do + Puppet::Node::Catalog.ancestors.should be_include(Puppet::Util::Cacher::Expirer) + end + describe "when applying" do it "should create and evaluate a transaction" do @transaction.expects(:evaluate) @catalog.apply @@ -685,6 +688,11 @@ describe Puppet::Node::Catalog do end @catalog.resource("File[/yay]").should be_nil end + + it "should expire cached data in the resources" do + @catalog.expects(:expire) + @catalog.apply + end end describe "when applying host catalogs" do |
