diff options
author | danielsdeleo <dan@opscode.com> | 2013-01-03 11:19:53 -0800 |
---|---|---|
committer | danielsdeleo <dan@opscode.com> | 2013-01-03 16:28:26 -0800 |
commit | 2eeed3b2c19383e7892ddbf01a903129c32292c9 (patch) | |
tree | fcbf7f914adada736798d35f72fa0253b1575900 /spec/unit/provider/cookbook_file_spec.rb | |
parent | daab98592920fd8aeb32fb9cd539b6019614c698 (diff) | |
download | chef-2eeed3b2c19383e7892ddbf01a903129c32292c9.tar.gz |
[CHEF-3557] fix reporting for directory-like resources
Diffstat (limited to 'spec/unit/provider/cookbook_file_spec.rb')
-rw-r--r-- | spec/unit/provider/cookbook_file_spec.rb | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/spec/unit/provider/cookbook_file_spec.rb b/spec/unit/provider/cookbook_file_spec.rb index c70a7d852c..6761eba692 100644 --- a/spec/unit/provider/cookbook_file_spec.rb +++ b/spec/unit/provider/cookbook_file_spec.rb @@ -85,7 +85,7 @@ EXPECTED @provider.current_resource = @current_resource end - after { ::File.exist?(@install_to) && FileUtils.rm(@install_to) } + after { ::File.exist?(File.dirname(@install_to)) && FileUtils.rm_rf(@install_to) } it "loads the current file state" do @provider.load_current_resource @@ -97,12 +97,6 @@ EXPECTED @provider.file_cache_location.should == expected end - it "stages the cookbook to a temporary file" do - @new_resource.path(@install_to) - @provider.should_receive(:deploy_tempfile) - @provider.run_action(:create) - end - it "installs the file from the cookbook cache" do @new_resource.path(@install_to) @provider.should_receive(:backup_new_resource) |