features/commands/update.feature in berkshelf-3.0.0.beta7 vs features/commands/update.feature in berkshelf-3.0.0.beta8
- old
+ new
@@ -62,13 +62,41 @@
GRAPH
ekaf (1.0.0)
fake (0.2.0)
"""
+ Scenario: With a git location
+ Given I have a Berksfile pointing at the local Berkshelf API with:
+ """
+ cookbook 'berkshelf-cookbook-fixture', git: 'git://github.com/RiotGames/berkshelf-cookbook-fixture'
+ """
+ And I write to "Berksfile.lock" with:
+ """
+ DEPENDENCIES
+ berkshelf-cookbook-fixture
+ git: git://github.com/RiotGames/berkshelf-cookbook-fixture
+ revision: 70a527e17d91f01f031204562460ad1c17f972ee
+
+ GRAPH
+ berkshelf-cookbook-fixture (0.2.0)
+ """
+ And I successfully run `berks install`
+ When I successfully run `berks update`
+ Then the file "Berksfile.lock" should contain:
+ """
+ DEPENDENCIES
+ berkshelf-cookbook-fixture
+ git: git://github.com/RiotGames/berkshelf-cookbook-fixture
+ revision: a97b9447cbd41a5fe58eee2026e48ccb503bd3bc
+
+ GRAPH
+ berkshelf-cookbook-fixture (1.0.0)
+ """
+
Scenario: With a cookbook that does not exist
Given I have a Berksfile pointing at the local Berkshelf API
When I run `berks update not_real`
Then the output should contain:
"""
- Could not find cookbook 'not_real'. Make sure it is in your Berksfile, then run `berks install` to download and install the missing dependencies.
+ Dependency 'not_real' was not found. Please make sure it is in your Berksfile, and then run `berks install` to download and install the missing dependencies.
"""
And the exit status should be "DependencyNotFound"