Sha256: ecf650b827e57aa68edf0aa4bf8075e93fd330927750f59f5bda3f96f57346cb

Contents?: true

Size: 1.37 KB

Versions: 31

Compression:

Stored size: 1.37 KB

Contents

Feature: Create a git repo
  As a lead devepoer
  In order to work on my new project
  I want my project folder to contain a git repo correctly initialised

  @announce
  Scenario: Create a new git repo on a folder with just a .gitignore
    Given a directory named "my_project"
    When I successfully run `fwt git new my_project`
    Then an initialized git repository should exists inside a directory named "my_project"
    And a file named "my_project/.gitignore" should exist

  Scenario: Fail to create a git repo because one exists already
    Given a directory named "my_project"
    Given an initialized git repository inside a directory named "my_project"
    Given a valid .gitignore file exists inside a directory named "my_project"
    When I run `fwt git new my_project`
    Then the stderr should contain:
    """
    There's already a repository at path
    """
    @slow
  Scenario: Create a git repository on a folder with files in it
    Given a directory named "my_project"
    Given a valid .gitignore file exists inside a directory named "my_project"
    Given the directory "my_project" contains an uncommitted file named "my_file.c"
    When I successfully run `fwt git new my_project`
    Then an initialized git repository should exists inside a directory named "my_project"
    And the file named "my_file.c" should have been committed to the repository at path "my_project"

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
fwtoolkit-2.3.2 features/git/create.feature
fwtoolkit-2.3.1 features/git/create.feature
fwtoolkit-2.3.0 features/git/create.feature
fwtoolkit-2.2.4 features/git/create.feature
fwtoolkit-2.2.3 features/git/create.feature
fwtoolkit-2.2.2 features/git/create.feature
fwtoolkit-2.2.1 features/git/create.feature
fwtoolkit-2.2.0 features/git/create.feature
fwtoolkit-2.1.10 features/git/create.feature
fwtoolkit-2.1.9 features/git/create.feature
fwtoolkit-2.1.8 features/git/create.feature
fwtoolkit-2.1.7 features/git/create.feature
fwtoolkit-2.1.6 features/git/create.feature
fwtoolkit-2.1.5 features/git/create.feature
fwtoolkit-2.1.4 features/git/create.feature
fwtoolkit-2.1.3 features/git/create.feature
fwtoolkit-2.1.1 features/git/create.feature
fwtoolkit-2.0.7 features/git/create.feature
fwtoolkit-2.0.6 features/git/create.feature
fwtoolkit-2.0.5 features/git/create.feature