Sha256: f425fab56040dcb1c4e4437d44e1fe5f5ab2280c04a24c177ab17ec2b359ce16

Contents?: true

Size: 1.65 KB

Versions: 3

Compression:

Stored size: 1.65 KB

Contents

@announce
Feature: Generate init task

  End-user generation of a repo_manager configuration

  Example commands:

      repo task generate:init .repo_manager
      repo task generate:init .
      repo task generate:init repo_manager --force --verbose

  Scenario: Specify path on the command line
    When I run `repo task generate:init nodefault --no-config --verbose`
    Then the exit status should be 0
    Then the output should contain:
      """
      creating initial file structure
      """
    And the following files should exist:
      | nodefault/assets/.gitignore                |
      | nodefault/global/default/asset.conf        |
      | nodefault/tasks/.gitignore                 |

  Scenario: Path not specified
    When I run `repo task generate:init --no-config`
    Then the exit status should be 1
    Then the output should contain:
      """
      repo init requires at least 1 argument
      """

  Scenario: Config file not found
    When I run `repo task generate:init . --config=BadConfig.conf`
    Then the exit status should be 1
    Then the output should contain:
      """
      config file not found
      """

  Scenario: A file exists at destination and is not overwritten when answering 'No'
    Given a file named ".gitignore" with:
      """
      .my.file.3234134
      """
    When I run `repo task generate:init . --no-config` interactively
    When I type "n"
    Then the exit status should be 0
    And the following files should exist:
      | .gitignore             |
    And the file ".gitignore" should contain:
      """
      .my.file.3234134
      """
    And the following files should exist:
      | assets/.gitignore      |

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
repo_manager-0.7.3 features/tasks/generate/init.feature
repo_manager-0.7.2 features/tasks/generate/init.feature
repo_manager-0.7.1 features/tasks/generate/init.feature