features/install_command.feature in berkshelf-1.4.1 vs features/install_command.feature in berkshelf-1.4.2

- old
+ new

@@ -84,15 +84,30 @@ And the exit status should be 0 Scenario: installing a Berksfile that contains a Git location Given I write to "Berksfile" with: """ + cookbook "artifact", git: "git://github.com/RiotGames/artifact-cookbook.git" + """ + When I successfully run `berks install` + Then the cookbook store should have the git cookbooks: + | artifact | 1.5.0 | master | + And the output should contain: + """ + Installing artifact (1.5.0) from git: 'git://github.com/RiotGames/artifact-cookbook.git' with branch: 'master' + """ + And the exit status should be 0 + + + Scenario: installing a Berksfile that contains a Git location with a ref + Given I write to "Berksfile" with: + """ cookbook "artifact", git: "git://github.com/RiotGames/artifact-cookbook.git", ref: "0.9.8" """ When I successfully run `berks install` Then the cookbook store should have the git cookbooks: - | artifact | 0.9.8 | c0a0b456a4716a81645bef1369f5fd1a4e62ce6d | + | artifact | 0.9.8 | 0.9.8 | And the output should contain: """ Installing artifact (0.9.8) from git: 'git://github.com/RiotGames/artifact-cookbook.git' with branch: '0.9.8' """ And the exit status should be 0 @@ -102,11 +117,11 @@ """ cookbook "artifact", github: "RiotGames/artifact-cookbook", ref: "0.9.8" """ When I successfully run `berks install` Then the cookbook store should have the git cookbooks: - | artifact | 0.9.8 | c0a0b456a4716a81645bef1369f5fd1a4e62ce6d | + | artifact | 0.9.8 | 0.9.8 | And the output should contain: """ Installing artifact (0.9.8) from github: 'RiotGames/artifact-cookbook' with branch: '0.9.8' """ And the exit status should be 0 @@ -116,11 +131,11 @@ """ cookbook "artifact", github: "RiotGames/artifact-cookbook", ref: "0.9.8" """ When I successfully run `berks install` Then the cookbook store should have the git cookbooks: - | artifact | 0.9.8 | c0a0b456a4716a81645bef1369f5fd1a4e62ce6d | + | artifact | 0.9.8 | 0.9.8 | And the output should contain: """ Installing artifact (0.9.8) from github: 'RiotGames/artifact-cookbook' with branch: '0.9.8' over protocol: 'git' """ And the exit status should be 0 @@ -130,11 +145,11 @@ """ cookbook "artifact", github: "RiotGames/artifact-cookbook", ref: "0.9.8", protocol: "<protocol>" """ When I successfully run `berks install` Then the cookbook store should have the git cookbooks: - | artifact | 0.9.8 | c0a0b456a4716a81645bef1369f5fd1a4e62ce6d | + | artifact | 0.9.8 | 0.9.8 | And the output should contain: """ Installing artifact (0.9.8) from github: 'RiotGames/artifact-cookbook' with branch: '0.9.8' over protocol: '<protocol>' """ And the exit status should be 0 @@ -312,10 +327,10 @@ """ When I run `berks install` Then the output should contain: """ Installing ohai (1.1.4) from site: 'http://cookbooks.opscode.com/api/v1/cookbooks' - Failed to download 'doesntexist' from git: 'git://github.com/asdjhfkljashflkjashfakljsf' + Failed to download 'doesntexist' from git: 'git://github.com/asdjhfkljashflkjashfakljsf' with branch: 'master' An error occured during Git execution: """ And the CLI should exit with the status code for error "GitError" Scenario: invalid site symbol