features/update_command.feature in berkshelf-3.0.0.beta1 vs features/update_command.feature in berkshelf-3.0.0.beta2
- old
+ new
@@ -21,12 +21,11 @@
Then the file "Berksfile.lock" should contain JSON:
"""
{
"dependencies":{
"berkshelf-cookbook-fixture":{
- "locked_version":"0.1.0",
- "constraint":"~> 0.1"
+ "locked_version":"0.1.0"
}
}
}
"""
@@ -45,32 +44,28 @@
And I write to "Berksfile.lock" with:
"""
{
"dependencies":{
"berkshelf-cookbook-fixture":{
- "locked_version":"0.1.0",
- "constraint":"~> 0.1"
+ "locked_version":"0.1.0"
},
"hostsfile":{
- "locked_version":"1.0.1",
- "constraint":"= 1.0.1"
+ "locked_version":"1.0.1"
}
}
}
"""
When I successfully run `berks update`
Then the file "Berksfile.lock" should contain JSON:
"""
{
"dependencies":{
"berkshelf-cookbook-fixture":{
- "locked_version":"0.2.0",
- "constraint":"~> 0.1"
+ "locked_version":"0.2.0"
},
"hostsfile":{
- "locked_version":"1.0.1",
- "constraint":"~> 1.0.0"
+ "locked_version":"1.0.1"
}
}
}
"""
@@ -89,32 +84,28 @@
And I write to "Berksfile.lock" with:
"""
{
"dependencies":{
"berkshelf-cookbook-fixture":{
- "locked_version":"0.1.0",
- "constraint":"~> 0.1"
+ "locked_version":"0.1.0"
},
"hostsfile":{
- "locked_version":"1.0.0",
- "constraint":"~> 1.0.0"
+ "locked_version":"1.0.1"
}
}
}
"""
And I successfully run `berks update berkshelf-cookbook-fixture`
Then the file "Berksfile.lock" should contain JSON:
"""
{
"dependencies":{
"berkshelf-cookbook-fixture":{
- "locked_version":"0.2.0",
- "constraint":"~> 0.1"
+ "locked_version":"0.2.0"
},
"hostsfile":{
- "locked_version":"1.0.0",
- "constraint":"~> 1.0.0"
+ "locked_version":"1.0.1"
}
}
}
"""
@@ -130,17 +121,16 @@
Given I write to "Berksfile.lock" with:
"""
{
"dependencies":{
"berkshelf-cookbook-fixture":{
- "locked_version":"0.1.0",
- "constraint":"~> 0.1"
+ "locked_version":"0.1.0"
}
}
}
"""
When I run `berks update non-existent-cookbook`
Then the output should contain:
"""
Could not find cookbook(s) 'non-existent-cookbook' in any of the configured dependencies. Is it in your Berksfile?
"""
- And the exit status should be "CookbookNotFound"
+ And the exit status should be "DependencyNotFound"