Sha256: 9a97b6ce9315467cc705aafb5c2ae3d090a798951a28400cd14d049758b2ca4c

Contents?: true

Size: 1.66 KB

Versions: 9

Compression:

Stored size: 1.66 KB

Contents

Feature: initialize command
  As a Cookbook author  
  I want a way to quickly prepare a Cookbook on my local disk with Berkshelf files
  So that I can resolve my Cookbook's dependencies with Berkshelf

  Scenario: initializing a path containing a cookbook
    Given a cookbook named "sparkle_motion"
    When I run the init command with the cookbook "sparkle_motion" as the target
    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"
    And the exit status should be 0

  Scenario: initializing a path that does not contain a cookbook
    Given a directory named "not_a_cookbook"
    When I run the init command with the directory "not_a_cookbook" as the target
    Then the directory "not_a_cookbook" should have the following files:
      | Berksfile |
    And the directory "not_a_cookbook" should not have the following files:
      | .chefignore  |
    And the file "Berksfile" in the directory "not_a_cookbook" should not contain:
      """
      metadata
      """
    And the output should contain "Successfully initialized"
    And the exit status should be 0

  Scenario: initializing with no value given for target
    When I run the init command with no value for the target
    Then the output should contain "Successfully initialized"
    And the current directory should have the following files:
      | Berksfile |
    And the current directory should not have the following files:
      | .chefignore  |
    And the exit status should be 0

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
berkshelf-0.3.2 features/init_command.feature
berkshelf-0.3.1 features/init_command.feature
berkshelf-0.3.0 features/init_command.feature
berkshelf-0.2.0 features/init_command.feature
berkshelf-0.1.5 features/init_command.feature
berkshelf-0.1.4 features/init_command.feature
berkshelf-0.1.3 features/init_command.feature
berkshelf-0.1.2 features/init_command.feature
berkshelf-0.1.1 features/init_command.feature