Skip to content

Commit

Permalink
Set Chef::Config.file_backup_path to nil so the backup will file get …
Browse files Browse the repository at this point in the history
…generated in the same directory as the existing one ( thus should already have write permissions )
  • Loading branch information
Toomas Pelberg authored and danielsdeleo committed Aug 17, 2010
1 parent c941d60 commit 971a893
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions chef/spec/unit/provider/template_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
describe Chef::Provider::Template do
before(:each) do
Chef::Config.cookbook_path(File.expand_path(File.join(CHEF_SPEC_DATA, "cookbooks")))
Chef::Config.file_backup_path=nil
Chef::Cookbook::FileVendor.on_create { |manifest| Chef::Cookbook::FileSystemFileVendor.new(manifest) }

@node = Chef::Node.new
Expand Down

0 comments on commit 971a893

Please sign in to comment.