Cucumber Ltd / jam

Delete a projectfeatures/manage_projects/delete_a_project.feature

Release Crystal Apple (2018-02-01)

Romain GĂ©rard

Currently viewing

Results for this document from 4 runs in latest build #7117 :

  • passed 11
  • total11 / 239

Feature: Delete a project

Whether or not a user can interact with a project depends on a number of rules.

Rules

  • Projects can only be deleted by their collaborators

Scenario: you can't view a deleted project

  • Given Dolly has created dollys-project
  • And Dolly has listed the projects
  • When Dolly deletes dollys-project
  • Then dollys-project should disappear from Dolly's project list
  • And Dolly should not be able to read dollys-project's documentation

Scenario: you can't access the repository of a deleted project

  • Given Dolly has created dollys-project
  • And Dolly has uploaded her public key
  • When Dolly deletes dollys-project
  • Then Dolly should not be able to clone dollys-project's repository
  • @not-ui-testable

Scenario: you can't delete a private project you're not a collaborator on

  • Given the following projects have been created:
    creatorprojectNamevisibility
    Janejanes-private-projectprivate
  • When Bob tries to delete janes-private-project
  • Then Bob should be prevented from deleting the project

Scenario: you can't delete a public project you're not a collaborator on

  • Given the following projects have been created:
    creatorprojectNamevisibility
    Janejanes-private-projectpublic
  • When Bob tries to delete janes-private-project
  • Then Bob should be prevented from deleting the project