Sha256: ea669df9ffbf24585c50b4d1a4fa8e658ca74a6630830e0a2ba41ab4bd5e0a46

Contents?: true

Size: 1.69 KB

Versions: 1

Compression:

Stored size: 1.69 KB

Contents

Feature: berks list
  Scenario: Running the list command
    Given the cookbook store has the cookbooks:
      | fake1 | 1.0.0 |
      | fake2 | 1.0.1 |
    And I have a Berksfile pointing at the local Berkshelf API with:
      """
      cookbook 'fake1', '1.0.0'
      cookbook 'fake2', '1.0.1'
      """
    And the Lockfile has:
      | fake1 | 1.0.0 |
      | fake2 | 1.0.1 |
    When I successfully run `berks list`
    Then the output should contain:
      """
      Cookbooks installed by your Berksfile:
        * fake1 (1.0.0)
        * fake2 (1.0.1)
      """


  Scenario: Running the list command when the dependencies aren't downloaded
    And I have a Berksfile pointing at the local Berkshelf API with:
      """
      cookbook 'fake', '1.0.0'
      """
    And the Lockfile has:
      | fake | 1.0.0 |
    When I run `berks list`
    Then the output should contain:
      """
      Could not find cookbook 'fake (1.0.0)'.
      """
    And the exit status should be "CookbookNotFound"


  Scenario: Running the list command when the lockfile isn't present
    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'
      """
    When I run `berks list`
    Then the output should contain:
      """
      Could not find cookbook 'fake (= 1.0.0)'.
      """
    And the exit status should be "CookbookNotFound"


  Scenario: Running the list command with no dependencies defined
    Given I have a Berksfile pointing at the local Berkshelf API
    When I successfully run `berks list`
    Then the output should contain:
      """
      There are no cookbooks installed by your Berksfile
      """

Version data entries

1 entries across 1 versions & 1 rubygems

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