From 5eac8746030e220aff09c6224fdff2f9eb5a37df Mon Sep 17 00:00:00 2001 From: João M. M. Silva + Guilherme Rojas V. de Lima + Rafael Reggiani Manzo Date: Mon, 2 Sep 2013 18:14:05 -0300 Subject: [PATCH] Project Deletion acceptance tests complemented --- features/project/deletion.feature | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/features/project/deletion.feature b/features/project/deletion.feature index a28bbfa..989f6d7 100644 --- a/features/project/deletion.feature +++ b/features/project/deletion.feature @@ -2,7 +2,24 @@ Feature: Project Deletion In order to be able to remove projects As a regular user The system should have an interface to it - + + @kalibro_restart + Scenario: Should not delete a project without user authetication + Given I have a sample project + When I am at the Sample Project page + Then I should not see Destroy + + @wip + @kalibro_restart + Scenario: Should not delete a project that doesn't belongs to user + Given I am a regular user + And I am signed in + And I own a sample project + And I am at the Sample Project page + When I click the Destroy link + Then I should be in the All Projects page + And the sample project should not be there + @kalibro_restart Scenario: Should delete a project Given I am a regular user -- libgit2 0.21.2