diff options
author | Vasiliy Tolstov <v.tolstov@selfip.ru> | 2014-11-11 22:10:54 +0300 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2014-11-13 12:39:14 -0800 |
commit | e6d0a0ea72bc982ac294d64764efa4f1d6da0e66 (patch) | |
tree | c51727d76d6a3dcc8ee90a6e5f8baba0343a3c85 /spec/unit/application/solo_spec.rb | |
parent | d80796160625016889ded0ce42fec3ea9945e39e (diff) | |
download | chef-e6d0a0ea72bc982ac294d64764efa4f1d6da0e66.tar.gz |
cleanup cookbook path from stale files
Signed-off-by: Vasiliy Tolstov <v.tolstov@selfip.ru>
Diffstat (limited to 'spec/unit/application/solo_spec.rb')
-rw-r--r-- | spec/unit/application/solo_spec.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/spec/unit/application/solo_spec.rb b/spec/unit/application/solo_spec.rb index 26d7d34caa..80f0bead8b 100644 --- a/spec/unit/application/solo_spec.rb +++ b/spec/unit/application/solo_spec.rb @@ -94,6 +94,7 @@ Enable chef-client interval runs by setting `:client_fork = true` in your config before do Chef::Config[:cookbook_path] = "#{Dir.tmpdir}/chef-solo/cookbooks" Chef::Config[:recipe_url] = "http://junglist.gen.nz/recipes.tgz" + allow(FileUtils).to receive(:rm_rf).and_return(true) allow(FileUtils).to receive(:mkdir_p).and_return(true) @tarfile = StringIO.new("remote_tarball_content") allow(@app).to receive(:open).with("http://junglist.gen.nz/recipes.tgz").and_yield(@tarfile) @@ -135,6 +136,7 @@ Enable chef-client interval runs by setting `:client_fork = true` in your config Chef::Config[:json_attribs] = json_source Chef::Config[:recipe_url] = "http://icanhas.cheezburger.com/lolcats" Chef::Config[:cookbook_path] = "#{Dir.tmpdir}/chef-solo/cookbooks" + allow(FileUtils).to receive(:rm_rf).and_return(true) allow(FileUtils).to receive(:mkdir_p).and_return(true) allow(Chef::Mixin::Command).to receive(:run_command).and_return(true) end |