Commit 5eac8746030e220aff09c6224fdff2f9eb5a37df
Committed by
Rafael Manzo
1 parent
2bb61b50
Exists in
colab
and in
4 other branches
Project Deletion acceptance tests complemented
Showing
1 changed file
with
18 additions
and
1 deletions
Show diff stats
features/project/deletion.feature
| ... | ... | @@ -2,7 +2,24 @@ Feature: Project Deletion |
| 2 | 2 | In order to be able to remove projects |
| 3 | 3 | As a regular user |
| 4 | 4 | The system should have an interface to it |
| 5 | - | |
| 5 | + | |
| 6 | + @kalibro_restart | |
| 7 | + Scenario: Should not delete a project without user authetication | |
| 8 | + Given I have a sample project | |
| 9 | + When I am at the Sample Project page | |
| 10 | + Then I should not see Destroy | |
| 11 | + | |
| 12 | + @wip | |
| 13 | + @kalibro_restart | |
| 14 | + Scenario: Should not delete a project that doesn't belongs to user | |
| 15 | + Given I am a regular user | |
| 16 | + And I am signed in | |
| 17 | + And I own a sample project | |
| 18 | + And I am at the Sample Project page | |
| 19 | + When I click the Destroy link | |
| 20 | + Then I should be in the All Projects page | |
| 21 | + And the sample project should not be there | |
| 22 | + | |
| 6 | 23 | @kalibro_restart |
| 7 | 24 | Scenario: Should delete a project |
| 8 | 25 | Given I am a regular user | ... | ... |