spec/support/knife.rb in berkshelf-1.1.6 vs spec/support/knife.rb in berkshelf-1.2.0.rc1

- old
+ new

@@ -1,13 +1,13 @@ -require 'chef/config' +require 'berkshelf/chef' module Berkshelf module RSpec module Knife class << self def load_knife_config(path) if File.exist?(path) - Chef::Config.from_file(path) + Berkshelf::Chef::Config.from_file(path) ENV["CHEF_CONFIG"] = path else raise "Cannot continue; '#{path}' must exist and have testing credentials." unless ENV['CI'] end end