From c41f265fa4d8b4a749a146219cc547d29ccc4592 Mon Sep 17 00:00:00 2001 From: Rafael Reggiani Manzo + Diego Araújo Date: Mon, 2 Sep 2013 16:50:07 -0300 Subject: [PATCH] Acceptance tests for the project validations on creation --- features/project/create.feature | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/features/project/create.feature b/features/project/create.feature index f8913e2..b78d2e1 100644 --- a/features/project/create.feature +++ b/features/project/create.feature @@ -18,4 +18,25 @@ Feature: Project Creation And I fill the Description field with "Web Service to collect metrics" When I press the Create Project button Then I should see Kalibro - And I should see Web Service to collect metrics \ No newline at end of file + And I should see Web Service to collect metrics + + @kalibro_restart + Scenario: project creation with already taken name + Given I am a regular user + And I am signed in + And I have a project named "Kalibro" + And I am at the New Project page + And I fill the Name field with "Kalibro" + And I fill the Description field with "Web Service to collect metrics" + When I press the Create Project button + Then I should see There's already + + @kalibro_restart + Scenario: project creation with blank name + Given I am a regular user + And I am signed in + And I am at the New Project page + And I fill the Name field with " " + And I fill the Description field with "Web Service to collect metrics" + When I press the Create Project button + Then I should see Name can't be blank \ No newline at end of file -- libgit2 0.21.2