diff --git a/spec/integration/new_release_spec.rb b/spec/integration/new_release_spec.rb index e0c7a67..2b32de1 100644 --- a/spec/integration/new_release_spec.rb +++ b/spec/integration/new_release_spec.rb @@ -33,6 +33,8 @@ Chef::Config[:node_name] = ENV["CHEF_NODE_NAME"] || "opsycodesy" Chef::Config[:client_key] = ENV["CHEF_CLIENT_KEY"] || make_client_key! + Chef::Config[:cache_options][:path] = + File.join(File.dirname(cookbook_path), "cache") end after do @@ -40,7 +42,7 @@ Chef::Config[attr] = @saved.delete(attr) end - FileUtils.remove_dir(cookbook_path) + FileUtils.remove_dir(File.dirname(cookbook_path)) end let(:cookbook_path) { File.join(Dir.mktmpdir, "emeril") }