Sha256: 50e7af594d4a8cf43c580effee8aad02443cd168b125cba2651340ddd948308f

Contents?: true

Size: 1.65 KB

Versions: 45

Compression:

Stored size: 1.65 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

45 entries across 45 versions & 1 rubygems

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