Sha256: 747a853027e61478f4a576128fcc3309715d0085ac3b7f117f5bfc46fa1b00bc

Contents?: true

Size: 1.63 KB

Versions: 18

Compression:

Stored size: 1.63 KB

Contents

Feature: Displaying information about a cookbook defined by a Berksfile
  As a user
  I want to be able to view the metadata information of a cached cookbook
  So that I can troubleshoot bugs or satisfy my own curiosity

  Scenario: With no options
    Given the cookbook store has the cookbooks:
      | fake | 1.0.0 |
    And I write to "Berksfile" with:
      """
      cookbook 'fake', '1.0.0'
      """
    When I successfully run `berks show fake`
    Then the output should contain:
      """
              Name: fake
           Version: 1.0.0
       Description: A fabulous new cookbook
            Author: YOUR_COMPANY_NAME
             Email: YOUR_EMAIL
           License: none
      """

  Scenario: When JSON is requested
    Given the cookbook store has the cookbooks:
      | fake | 1.0.0 |
    And I write to "Berksfile" with:
      """
      cookbook 'fake', '1.0.0'
      """
    When I successfully run `berks show fake --format json`
    Then the output should contain:
      """
      {
        "cookbooks": [
          {
            "name": "fake",
            "version": "1.0.0",
            "description": "A fabulous new cookbook",
            "author": "YOUR_COMPANY_NAME",
            "email": "YOUR_EMAIL",
            "license": "none"
          }
        ],
        "errors": [

        ],
        "messages": [

        ]
      }
      """

  Scenario: When the cookbook is not in the Berksfile
    Given an empty file named "Berksfile"
    When I run `berks show fake`
    Then the output should contain "Cookbook 'fake' is not installed by your Berksfile"
    And the CLI should exit with the status code for error "CookbookNotFound"

Version data entries

18 entries across 18 versions & 1 rubygems

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