features/install.feature in berkshelf-0.4.0.rc4 vs features/install.feature in berkshelf-0.4.0
- old
+ new
@@ -63,11 +63,11 @@
"""
Using example_cookbook (0.5.0) at path:
"""
And the exit status should be 0
- @wip
+ @no_run
Scenario: installing a Berksfile that contains a path location which contains a broken symlink
Given a Berksfile with path location sources to fixtures:
| example_cookbook_broken_link | example_cookbook_broken_link |
When I run the install command with flags:
| --shims |
@@ -140,13 +140,13 @@
cookbook "doesntexist"
"""
And I run the install command
Then the output should contain:
"""
- Cookbook 'doesntexist' not found at site: 'http://cookbooks.opscode.com/api/v1/cookbooks'
+ Cookbook 'doesntexist' not found in any of the default locations
"""
- And the CLI should exit with the status code for error "DownloadFailure"
+ And the CLI should exit with the status code for error "CookbookNotFound"
Scenario: running install command with the --shims flag to create a directory of shims
Given I write to "Berksfile" with:
"""
cookbook "mysql", "1.2.4"
@@ -160,10 +160,26 @@
"""
Shims written to:
"""
And the exit status should be 0
+ Scenario: running install command with the --shims flag and a relative path
+ Given I write to "Berksfile" with:
+ """
+ cookbook "mysql", "1.2.4"
+ """
+ When I run the install command with flags:
+ | --shims relativepath |
+ Then the following directories should exist:
+ | relativepath |
+ | relativepath/mysql |
+ And the output should contain:
+ """
+ Shims written to:
+ """
+ And the exit status should be 0
+
Scenario: running install with --shims when current project is a cookbook and the 'metadata' is specified
Given a cookbook named "sparkle_motion"
And the cookbook "sparkle_motion" has the file "Berksfile" with:
"""
metadata
@@ -252,10 +268,10 @@
Given I write to "Berksfile" with:
"""
cookbook "artifact", chef_api: :knife
"""
And the Chef server has cookbooks:
- | artifact | 0.10.0 |
+ | artifact | 0.10.2 |
When I run the install command
Then the output should contain:
"""
Installing artifact (0.10.2) from chef_api:
"""