spec/support/chef_api.rb in berkshelf-0.4.0 vs spec/support/chef_api.rb in berkshelf-0.5.0.rc1

- old
+ new

@@ -98,10 +98,15 @@ def rest quietly { Chef::REST.new(Chef::Config[:chef_server_url]) } end def uploader - @uploader ||= Berkshelf::Uploader.new(Chef::Config[:chef_server_url]) + @uploader ||= Berkshelf::Uploader.new( + server_url: Chef::Config[:chef_server_url], + client_name: Chef::Config[:node_name], + client_key: Chef::Config[:client_key], + organization: Berkshelf::ChefAPILocation.extract_organization(Chef::Config[:chef_server_url]) + ) end end end end