Sha256: f69edea917c6601d378a2271ec18b718fed3c49a61d85f76a3a4dac158174fd2

Contents?: true

Size: 1.53 KB

Versions: 15

Compression:

Stored size: 1.53 KB

Contents

Feature: berks contingent
  Background:
    * the Chef Server is empty
    * the cookbook store is empty

  Scenario: When there are dependent cookbooks
    Given the cookbook store has the cookbooks:
      | dep | 1.0.0 |
    And the cookbook store contains a cookbook "fake" "1.0.0" with dependencies:
      | dep | ~> 1.0.0 |
    And the cookbook store contains a cookbook "ekaf" "1.0.0" with dependencies:
      | dep | ~> 1.0.0 |
    And I have a Berksfile pointing at the local Berkshelf API with:
      """
      cookbook 'fake', '1.0.0'
      cookbook 'ekaf', '1.0.0'
      """
    And I run `berks install`
    And I successfully run `berks contingent dep`
    Then the output should contain:
      """
      Cookbooks in this Berksfile contingent upon 'dep':
        * ekaf (1.0.0)
        * fake (1.0.0)
      """

  Scenario: When there are no dependent cookbooks
    Given the cookbook store has the cookbooks:
      | fake | 1.0.0 |
    And I have a Berksfile pointing at the local Berkshelf API with:
      """
      cookbook 'fake', '1.0.0'
      """
    And I run `berks install`
    And I successfully run `berks contingent dep`
    Then the output should contain:
      """
      There are no cookbooks in this Berksfile contingent upon 'dep'.
      """

  Scenario: When the cookbook is not in the Berksfile
    Given I have a Berksfile pointing at the local Berkshelf API
    And I successfully run `berks contingent dep`
    Then the output should contain:
      """
      There are no cookbooks in this Berksfile contingent upon 'dep'.
      """

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
berkshelf-7.0.7 features/commands/contingent.feature
berkshelf-6.3.4 features/commands/contingent.feature
berkshelf-7.0.6 features/commands/contingent.feature
berkshelf-7.0.5 features/commands/contingent.feature
berkshelf-6.3.3 features/commands/contingent.feature
berkshelf-7.0.4 features/commands/contingent.feature
berkshelf-7.0.3 features/commands/contingent.feature
berkshelf-7.0.2 features/commands/contingent.feature
berkshelf-7.0.1 features/commands/contingent.feature
berkshelf-7.0.0 features/commands/contingent.feature
berkshelf-6.3.2 features/commands/contingent.feature
berkshelf-6.3.1 features/commands/contingent.feature
berkshelf-6.3.0 features/commands/contingent.feature
berkshelf-6.2.2 features/commands/contingent.feature
berkshelf-6.2.1 features/commands/contingent.feature