Sha256: 2a75a58ee2ab71b30beffd0187ec779622a9004c0fe334786b3de8218e77673f

Contents?: true

Size: 1007 Bytes

Versions: 57

Compression:

Stored size: 1007 Bytes

Contents

Feature: berks init
  Scenario: initializing a path containing a cookbook
    Given a cookbook named "sparkle_motion"
    When I successfully run `berks init sparkle_motion`
    Then the cookbook "sparkle_motion" should have the following files:
      | Berksfile  |
      | chefignore |
    And the file "Berksfile" in the cookbook "sparkle_motion" should contain:
      """
      metadata
      """
    And the output should contain "Successfully initialized"

  Scenario: initializing a path that does not contain a cookbook
    Given a directory named "not_a_cookbook"
    When I run `berks init not_a_cookbook`
    And the exit status should be "NotACookbook"

  Scenario: initializing with no value given for target
    Given I write to "metadata.rb" with:
      """
      name 'sparkle_motion'
      """
    When I successfully run `berks init`
    Then the output should contain "Successfully initialized"
    And a file named "Berksfile" should exist
    And a file named "chefignore" should exist

Version data entries

57 entries across 57 versions & 1 rubygems

Version Path
berkshelf-6.3.4 features/commands/init.feature
berkshelf-6.3.3 features/commands/init.feature
berkshelf-6.3.2 features/commands/init.feature
berkshelf-6.3.1 features/commands/init.feature
berkshelf-6.3.0 features/commands/init.feature
berkshelf-6.2.2 features/commands/init.feature
berkshelf-6.2.1 features/commands/init.feature
berkshelf-6.2.0 features/commands/init.feature
berkshelf-6.1.1 features/commands/init.feature
berkshelf-6.1.0 features/commands/init.feature
berkshelf-6.0.1 features/commands/init.feature
berkshelf-6.0.0 features/commands/init.feature
berkshelf-5.6.5 features/commands/init.feature
berkshelf-5.6.4 features/commands/init.feature
berkshelf-5.6.3 features/commands/init.feature
berkshelf-5.6.2 features/commands/init.feature
berkshelf-5.6.1 features/commands/init.feature
berkshelf-5.6.0 features/commands/init.feature
berkshelf-5.5.0 features/commands/init.feature
berkshelf-5.4.0 features/commands/init.feature