Cucumber Ltd / jam

Create a projectfeatures/manage_projects/create_a_project.feature

Redirect ends the response, so don't end it

Aslak Helles√ły

Currently viewing

Feature: Manage projects

A Cucumber Pro project is where the documentation and specifications for your software are stored and shared with your whole team.

Rules

  • Can't create a project with a name that's already taken

Background:

  • Given the following projects have been created:
    creatorprojectNamevisibility
    Janejanes-private-projectprivate

Scenario: you can view the new projects

  • When Bob creates a project called bobs-project
  • Then Bob should see bobs-project's name and repo URL

Scenario: you can view your own private projects

  • When Bob creates a private project called bobs-private-project
  • Then Bob should see bobs-private-project's name and repo URL
  • And Bob should see that bobs-private-project is private

Scenario: you can't create two projects with the same name

  • When Sally tries to create a project called janes-private-project
  • Then Sally should be told that janes-private-project already exists

Scenario: you can't create a projects without a name

  • When Bob tries to create a project with no name
  • Then Bob should be told to enter a project name