Sha256: 4683bb3682cf58d0312ead38ec39af6ffdd29dc6ad3cc9aa4eeb1176997c1410
Contents?: true
Size: 1.82 KB
Versions: 20
Compression:
Stored size: 1.82 KB
Contents
Feature: update As a user I want a way to update the versions without clearing out the files I've downloaded So that I can update faster than a clean install Scenario: knife berkshelf update Given I write to "Berksfile" with: """ cookbook "artifact", "0.10.0" """ Given I write to "Berksfile.lock" with: """ cookbook 'artifact', :locked_version => '0.1.0' """ When I successfully run `berks update` Then the file "Berksfile.lock" should contain exactly: """ cookbook 'artifact', :locked_version => '0.10.0' """ Scenario: knife berkshelf update a single cookbook Given I write to "Berksfile" with: """ cookbook "artifact", "0.10.0" cookbook "build-essential", "~> 1.1.0" """ Given I write to "Berksfile.lock" with: """ cookbook 'artifact', :locked_version => '0.10.0' cookbook 'build-essential', :locked_version => '1.1.0' """ When I successfully run `berks update build-essential` Then the file "Berksfile.lock" should contain exactly: """ cookbook 'artifact', :locked_version => '0.10.0' cookbook 'build-essential', :locked_version => '1.1.2' """ Scenario: knife berkshelf update a cookbook that isn't in the Berksfile Given I write to "Berksfile" with: """ cookbook "artifact", "0.10.0" cookbook "build-essential", "~> 1.1.0" """ Given I write to "Berksfile.lock" with: """ cookbook 'artifact', :locked_version => '0.10.0' cookbook 'build-essential', :locked_version => '1.1.0' """ When I run `berks update foo` Then the output should contain: """ Could not find cookbooks 'foo' in any of the sources. Is it in your Berksfile? """ And the CLI should exit with the status code for error "CookbookNotFound"
Version data entries
20 entries across 20 versions & 1 rubygems