Sha256: 4469b7ea4086f9d71f1538d831bd45133840ce74522d5911e8cef60085aa4606

Contents?: true

Size: 1.54 KB

Versions: 18

Compression:

Stored size: 1.54 KB

Contents

Feature: Running the contingent command
  As a user with a Berksfile
  I want a way to the cookbooks that depend on another
  So that I can better understand my infrastructure

  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 write to "Berksfile" with:
      """
      cookbook 'fake', '1.0.0'
      cookbook 'ekaf', '1.0.0'
      """
    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)
      """
    And the exit status should be 0

  Scenario: When there are no dependent cookbooks
    Given the cookbook store has the cookbooks:
      | fake | 1.0.0 |
    And I write to "Berksfile" with:
      """
      cookbook 'fake', '1.0.0'
      """
    And I successfully run `berks contingent dep`
    Then the output should contain:
      """
      There are no cookbooks contingent upon 'dep' defined in this Berksfile
      """
    And the exit status should be 0

  Scenario: When the cookbook is not in the Berksfile
    Given an empty file named "Berksfile"
    And I successfully run `berks contingent dep`
    Then the output should contain:
      """
      There are no cookbooks contingent upon 'dep' defined in this Berksfile
      """

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
berkshelf-2.0.18 features/contingent_command.feature
berkshelf-2.0.17 features/contingent_command.feature
berkshelf-2.0.16 features/contingent_command.feature
berkshelf-2.0.15 features/contingent_command.feature
berkshelf-2.0.14 features/contingent_command.feature
berkshelf-2.0.13 features/contingent_command.feature
berkshelf-2.0.12 features/contingent_command.feature
berkshelf-2.0.11 features/contingent_command.feature
berkshelf-2.0.10 features/contingent_command.feature
berkshelf-2.0.9 features/contingent_command.feature
berkshelf-2.0.8 features/contingent_command.feature
berkshelf-2.0.7 features/contingent_command.feature
berkshelf-2.0.6 features/contingent_command.feature
berkshelf-2.0.5 features/contingent_command.feature
berkshelf-2.0.4 features/contingent_command.feature
berkshelf-2.0.3 features/contingent_command.feature
berkshelf-2.0.1 features/contingent_command.feature
berkshelf-2.0.0 features/contingent_command.feature