features/step_definitions/filesystem_steps.rb in berkshelf-1.1.6 vs features/step_definitions/filesystem_steps.rb in berkshelf-1.2.0.rc1

- old
+ new

@@ -21,10 +21,12 @@ Given /^I have a default Berkshelf config file$/ do Berkshelf::Config.new.save end Given /^I have a Berkshelf config file containing:$/ do |contents| - Berkshelf::Config.new.from_json(contents).save + File.open(Berkshelf::Config.path, 'w+') do |f| + f.write(contents) + end end Given /^I do not have a Berkshelf config file$/ do remove_file Berkshelf::Config.path if File.exists? Berkshelf::Config.path end