spec/acceptance/cookbook_resource_spec.rb in ridley-0.7.0.beta vs spec/acceptance/cookbook_resource_spec.rb in ridley-0.7.0.rc1

- old
+ new

@@ -1,46 +1,28 @@ require 'spec_helper' describe "Cookbook API operations", type: "acceptance" do - let(:server_url) { "https://api.opscode.com" } + let(:server_url) { "https://api.opscode.com/organizations/ridley" } let(:client_name) { "reset" } let(:client_key) { "/Users/reset/.chef/reset.pem" } - let(:organization) { "ridley" } let(:connection) do - Ridley.connection( + Ridley.new( server_url: server_url, client_name: client_name, - client_key: client_key, - organization: organization + client_key: client_key ) end before(:all) { WebMock.allow_net_connect! } after(:all) { WebMock.disable_net_connect! } describe "finding a cookbook" do pending end - describe "creating a cookbook" do - pending - end - - describe "deleting a cookbook" do - pending - end - - describe "deleting all cookbooks" do - pending - end - describe "listing all cookbooks" do it "should return an array of environment objects" do - connection.cookbook.all.should each be_a(Ridley::Cookbook) + connection.cookbook.all.should each be_a(Ridley::CookbookResource) end - end - - describe "updating a cookbook" do - pending end end