features/groups_install.feature in berkshelf-2.0.5 vs features/groups_install.feature in berkshelf-2.0.6
- old
+ new
@@ -26,9 +26,44 @@
Using takeme (1.0.0)
"""
And the output should not contain "Using notme (1.0.0)"
And the exit status should be 0
+ Scenario: Using the --except option with a lockfile
+ Given the cookbook store has the cookbooks:
+ | default | 1.0.0 |
+ | takeme | 1.0.0 |
+ Given I write to "Berksfile" with:
+ """
+ group :notme do
+ cookbook 'notme', '1.0.0'
+ end
+
+ cookbook 'default', '1.0.0'
+
+ group :takeme do
+ cookbook 'takeme', '1.0.0'
+ end
+ """
+ And I write to "Berksfile.lock" with:
+ """
+ {
+ "sources": {
+ "notme": { "locked_version": "1.0.0"},
+ "takeme": { "locked_version": "1.0.0"},
+ "default": { "locked_version": "1.0.0"}
+ }
+ }
+ """
+ When I successfully run `berks install --except notme`
+ Then the output should contain:
+ """
+ Using default (1.0.0)
+ Using takeme (1.0.0)
+ """
+ And the output should not contain "Using notme (1.0.0)"
+ And the exit status should be 0
+
Scenario: Using the --only option
Given the cookbook store has the cookbooks:
| takeme | 1.0.0 |
Given I write to "Berksfile" with:
"""