Sha256: edf5e2cc31285abeb3179d474c4aa64d18b7a4477fa0160dd4c39724da4cf878

Contents?: true

Size: 1.73 KB

Versions: 57

Compression:

Stored size: 1.73 KB

Contents

Feature: berks cookbook
  Scenario: With the default options
    When I successfully run `berks cookbook sparkle_motion`
    Then I should have a new cookbook skeleton "sparkle_motion"

  Scenario Outline: With various options
    When I successfully run `berks cookbook sparkle_motion --<option>`
    Then I should have a new cookbook skeleton "sparkle_motion" with <feature> support
  Examples:
    | option            | feature         |
    | foodcritic        | Foodcritic      |
    | chef-minitest     | Chef-Minitest   |
    | scmversion        | SCMVersion      |
    | no-bundler        | no Bundler      |
    # Disable testing of skip git until Test Kitchen supports the skip_git flag in its generator
    # https://github.com/opscode/test-kitchen/issues/141
    # | skip-git          | no Git          |
    | skip-vagrant      | no Vagrant      |
    | skip-test-kitchen | no Test Kitchen |

  Scenario Outline: When a required supporting gem is not installed
    Given the gem "<gem>" is not installed
    When I successfully run `berks cookbook sparkle_motion --<option>`
    Then I should have a new cookbook skeleton "sparkle_motion" with <feature> support
    And the output should contain a warning to suggest supporting the option "<option>" by installing "<gem>"
  Examples:
    | option     | feature    | gem             |
    | foodcritic | Foodcritic | foodcritic      |
    | scmversion | SCMVersion | thor-scmversion |

  Scenario: When bundler is not installed
    Given the gem "bundler" is not installed
    When I successfully run `berks cookbook sparkle_motion`
    Then I should have a new cookbook skeleton "sparkle_motion"
    And the output should contain a warning to suggest supporting the default for "bundler" by installing "bundler"

Version data entries

57 entries across 57 versions & 1 rubygems

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