summaryrefslogtreecommitdiff
path: root/spec/support
diff options
context:
space:
mode:
Diffstat (limited to 'spec/support')
-rw-r--r--spec/support/shared/unit/provider/file.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/spec/support/shared/unit/provider/file.rb b/spec/support/shared/unit/provider/file.rb
index 6562faca7c..02f68e0acc 100644
--- a/spec/support/shared/unit/provider/file.rb
+++ b/spec/support/shared/unit/provider/file.rb
@@ -483,6 +483,7 @@ shared_examples_for Chef::Provider::File do
tempfile = double('Tempfile', :path => "/tmp/foo-bar-baz")
content.stub(:tempfile).and_return(tempfile)
File.should_receive(:exists?).with("/tmp/foo-bar-baz").and_return(true)
+ tempfile.should_receive(:close).once
tempfile.should_receive(:unlink).once
end