From 053d7bfa678b152c42bf3fcbccaaa86aa578c39b Mon Sep 17 00:00:00 2001 From: Luke Kanies Date: Fri, 14 Nov 2008 19:27:50 -0600 Subject: These changes are all about making sure file data is expired when appropriate. All file tests now pass. Signed-off-by: Luke Kanies --- spec/unit/node/catalog.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'spec/unit/node') diff --git a/spec/unit/node/catalog.rb b/spec/unit/node/catalog.rb index e23c53d3a..e3661d995 100755 --- a/spec/unit/node/catalog.rb +++ b/spec/unit/node/catalog.rb @@ -700,8 +700,8 @@ describe Puppet::Node::Catalog do @catalog.resource("File[/yay]").should be_nil end - it "should expire cached data in the resources" do - @catalog.expects(:expire) + it "should expire cached data in the resources both before and after the transaction" do + @catalog.expects(:expire).times(2) @catalog.apply end end -- cgit