summaryrefslogtreecommitdiffstats
path: root/spec/unit/node
diff options
context:
space:
mode:
authorLuke Kanies <luke@madstop.com>2008-11-14 19:27:50 -0600
committerLuke Kanies <luke@madstop.com>2008-11-15 02:25:47 -0600
commit053d7bfa678b152c42bf3fcbccaaa86aa578c39b (patch)
tree69904d2ac68767bf680b397d08ed066993e3d67d /spec/unit/node
parenta8d9976d0a11c4dc50b2ef49c63f3f745cb4eccb (diff)
downloadpuppet-053d7bfa678b152c42bf3fcbccaaa86aa578c39b.tar.gz
puppet-053d7bfa678b152c42bf3fcbccaaa86aa578c39b.tar.xz
puppet-053d7bfa678b152c42bf3fcbccaaa86aa578c39b.zip
These changes are all about making sure file data is expired when appropriate.
All file tests now pass. Signed-off-by: Luke Kanies <luke@madstop.com>
Diffstat (limited to 'spec/unit/node')
-rwxr-xr-xspec/unit/node/catalog.rb4
1 files changed, 2 insertions, 2 deletions
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