features/groups_install.feature in berkshelf-1.4.6 vs features/groups_install.feature in berkshelf-2.0.0.beta

- old
+ new

@@ -5,62 +5,61 @@ Scenario: except groups Given I write to "Berksfile" with: """ group :notme do - cookbook "nginx", "= 0.101.2" + cookbook 'nginx', '= 0.101.2' end - cookbook "artifact", "= 0.10.0" + cookbook 'berkshelf-cookbook-fixture', '1.0.0' group :takeme do - cookbook "ntp", "= 1.1.8" + cookbook 'hostsfile', '1.0.1' end """ - When I run the install command with flags: - | --except notme | + When I successfully run `berks install --except notme` Then the cookbook store should have the cookbooks: - | artifact | 0.10.0 | - | ntp | 1.1.8 | + | berkshelf-cookbook-fixture | 1.0.0 | + | hostsfile | 1.0.1 | And the cookbook store should not have the cookbooks: | nginx | 0.101.2 | + And the exit status should be 0 Scenario: only groups Given I write to "Berksfile" with: """ group :notme do - cookbook "nginx", "= 0.101.2" + cookbook 'nginx', '= 0.101.2' end - cookbook "artifact", "= 0.10.0" + cookbook 'berkshelf-cookbook-fixture', '1.0.0' group :takeme do - cookbook "ntp", "= 1.1.8" + cookbook 'hostsfile', '1.0.1' end """ - When I run the install command with flags: - | --only takeme | + When I successfully run `berks install --only takeme` Then the cookbook store should have the cookbooks: - | ntp | 1.1.8 | + | hostsfile | 1.0.1 | And the cookbook store should not have the cookbooks: - | nginx | 0.101.2 | - | artifact | 0.10.0 | + | nginx | 0.101.2 | + | berkshelf-cookbook-fixture | 1.0.0 | + And the exit status should be 0 Scenario: attempting to provide an only and except option Given I write to "Berksfile" with: """ group :notme do - cookbook "nginx", "= 0.101.2" + cookbook 'nginx', '= 0.101.2' end - cookbook "artifact", "= 0.10.0" + cookbook 'berkshelf-cookbook-fixture', '1.0.0' group :takeme do - cookbook "ntp", "= 1.1.8" + cookbook 'hostsfile', '1.0.1' end """ - When I run the install command with flags: - | --only takeme --except notme | + When I run `berks install --only takeme --except notme` Then the output should contain: """ Cannot specify both :except and :only """ And the CLI should exit with the status code for error "ArgumentError"