Sha256: dcbd200b6e31015967afc31e2bc56320e566a2d6e4d0fa1d8ab90439296d0328

Contents?: true

Size: 1.34 KB

Versions: 1

Compression:

Stored size: 1.34 KB

Contents

@api_server
Feature: berks update
  Background:
    * the cookbook store has the cookbooks:
      | fake | 0.1.0 |
      | fake | 0.2.0 |
      | fake | 1.0.0 |
      | ekaf | 1.0.0 |
      | ekaf | 1.0.1 |


  Scenario: Without a cookbook specified
    And I have a Berksfile pointing at the local Berkshelf API with:
      """
      cookbook 'fake', '~> 0.1'
      cookbook 'ekaf', '~> 1.0.0'
      """
    And the Lockfile has:
      | fake | 0.1.0 |
      | ekaf | 1.0.0 |
    When I successfully run `berks update`
    Then the Lockfile should have:
      | fake | 0.2.0 |
      | ekaf | 1.0.1 |


  Scenario: With a single cookbook specified
    And I have a Berksfile pointing at the local Berkshelf API with:
      """
      cookbook 'fake', '~> 0.1'
      cookbook 'ekaf', '~> 1.0.0'
      """
    And the Lockfile has:
      | fake | 0.1.0 |
      | ekaf | 1.0.0 |
    When I successfully run `berks update fake`
    Then the Lockfile should have:
      | fake | 0.2.0 |
      | ekaf | 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(s) 'not_real' in any of the configured dependencies. Is it in your Berksfile?
      """
    And the exit status should be "DependencyNotFound"

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
berkshelf-3.0.0.beta4 features/commands/update.feature