features/install.feature in berkshelf-0.6.0.beta2 vs features/install.feature in berkshelf-0.6.0.beta3
- old
+ new
@@ -192,10 +192,11 @@
"""
Invalid options for Cookbook Source: 'whatisthis', 'anotherwat'.
"""
And the CLI should exit with the status code for error "InternalError"
+ @chef_server
Scenario: with a cookbook definition containing a chef_api source location
Given I write to "Berksfile" with:
"""
cookbook "artifact", "= 0.10.2", chef_api: :knife
"""
@@ -256,5 +257,20 @@
Then the output should contain:
"""
Source 'artifact' is a 'chef_api' location with a URL for it's value but is missing options: 'node_name', 'client_key'.
"""
And the CLI should exit with the status code for error "InvalidChefAPILocation"
+
+ Scenario: with a git error during download
+ Given I write to "Berksfile" with:
+ """
+ cookbook "ohai"
+ cookbook "doesntexist", git: "git://github.com/asdjhfkljashflkjashfakljsf"
+ """
+ When I run the install command
+ Then the output should contain:
+ """
+ Installing ohai (1.1.2) from site: 'http://cookbooks.opscode.com/api/v1/cookbooks'
+ Failed to download doesntexist from git: 'git://github.com/asdjhfkljashflkjashfakljsf'
+ An error occured during Git execution:
+ """
+ And the CLI should exit with the status code for error "GitError"