Sha256: 99e7b1d8059c189b5c0c55d6adc02bc19b655d255c00f874291b469b7b8d7d7b

Contents?: true

Size: 1.03 KB

Versions: 19

Compression:

Stored size: 1.03 KB

Contents

Feature: show command
  As a user with a Berksfile
  I want a way to show the path to a cookbooks on my local file system
  So that I can view the source and debug

  Scenario: Running the show command with an installed cookbook name
    Given I write to "Berksfile" with:
      """
      cookbook "build-essential", "1.2.0"
      cookbook "chef-client", "1.2.0"
      cookbook "mysql", "1.2.4"
      """
    And I successfully run `berks install`
    When I run `berks show build-essential`
    Then the output should contain "berkshelf/tmp/berkshelf/cookbooks/build-essential-1.2.0"
    And the exit status should be 0

  Scenario: Running the show command with a not installed cookbook name
    Given I write to "Berksfile" with:
      """
      cookbook "mysql", "1.2.4"
      """
    And I successfully run `berks install`
    When I run `berks show build-essential`
    Then the output should contain "Cookbook 'build-essential' was not installed by your Berksfile"
    And the CLI should exit with the status code for error "CookbookNotFound"

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
berkshelf-1.4.5 features/show_command.feature
berkshelf-1.4.4 features/show_command.feature
berkshelf-1.4.3 features/show_command.feature
berkshelf-1.4.2 features/show_command.feature
berkshelf-1.4.1 features/show_command.feature
berkshelf-1.4.0 features/show_command.feature
berkshelf-1.4.0.rc1 features/show_command.feature
berkshelf-1.3.1 features/show_command.feature
berkshelf-1.3.0.rc1 features/show_command.feature
berkshelf-1.2.1 features/show_command.feature
berkshelf-1.2.0.rc1 features/show_command.feature
berkshelf-1.1.6 features/show_command.feature
berkshelf-1.1.5 features/show_command.feature
berkshelf-1.1.4 features/show_command.feature
berkshelf-1.1.3 features/show_command.feature
berkshelf-1.1.2 features/show_command.feature
berkshelf-1.1.1 features/show_command.feature
berkshelf-1.1.0 features/show_command.feature
berkshelf-1.1.0.rc1 features/show_command.feature