Sha256: 7cee4552b7ada8d73a20fd14d499408e0bd61a3a7e0e45b80ce468f421251b72

Contents?: true

Size: 1.26 KB

Versions: 7

Compression:

Stored size: 1.26 KB

Contents

Feature: cli/show



  Background: A simple Cheffile with one cookbook with one dependency
    Given a file named "cookbook-sources/main/metadata.yaml" with:
      """
      name: main
      version: 1.0.0
      dependencies:
        sub: 1.0.0
      """
    Given a file named "cookbook-sources/sub/metadata.yaml" with:
      """
      name: sub
      version: 1.0.0
      dependencies: {}
      """
    Given a file named "Cheffile" with:
      """
      path 'cookbook-sources'
      cookbook 'main'
      """
    Given I run `librarian-chef install`



  Scenario: Showing all
    When I run `librarian-chef show`
    Then the exit status should be 0
    Then the output should contain exactly:
      """
      main (1.0.0)
      sub (1.0.0)

      """



  Scenario: Showing one without dependencies
    When I run `librarian-chef show sub`
    Then the exit status should be 0
    Then the output should contain exactly:
      """
      sub (1.0.0)
        source: cookbook-sources

      """



  Scenario: Showing one with dependencies
    When I run `librarian-chef show main`
    Then the exit status should be 0
    Then the output should contain exactly:
      """
      main (1.0.0)
        source: cookbook-sources
        dependencies:
          sub (= 1.0.0)

      """



Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
librarian-puppet-0.9.1 vendor/librarian/features/chef/cli/show.feature
librarian-puppet-0.9.0 vendor/librarian/features/chef/cli/show.feature
librarian-puppet-0.0.1.pre2 vendor/librarian/features/chef/cli/show.feature
librarian-puppet-0.0.1.pre vendor/librarian/features/chef/cli/show.feature
librarian-0.0.23 features/chef/cli/show.feature
librarian-0.0.22 features/chef/cli/show.feature
librarian-0.0.21 features/chef/cli/show.feature