From 8d17b3537cdbd4a8b2e8ff5c780e579697dbe569 Mon Sep 17 00:00:00 2001 From: Stephen Caudill Date: Sun, 26 Sep 2010 14:18:58 -0400 Subject: [PATCH] Refactor to use a Background --- features/user_creates_an_aspect.feature | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/features/user_creates_an_aspect.feature b/features/user_creates_an_aspect.feature index 27cb6f2f3..fb65fde4c 100644 --- a/features/user_creates_an_aspect.feature +++ b/features/user_creates_an_aspect.feature @@ -4,20 +4,20 @@ Feature: User creates an aspect As a User I want to create a new aspect - Scenario: success + Background: Given I am signed in And I follow "Manage" in the header And I follow "Add a new aspect" - When I fill in "Name" with "Dorm Mates" in the modal window - And I press "Create" in the modal window + + Scenario: success + Given I fill in "Name" with "Dorm Mates" in the modal window + When I press "Create" in the modal window Then I should see "Manage Aspects" And I should see "Dorm Mates" in the header And I should see "Dorm Mates" in the aspect list Scenario: I omit the name - Given I am signed in - And I follow "Manage" in the header - And I follow "Add a new aspect" + Given I fill in "Name" with "" in the modal window When I press "Create" in the modal window Then I should see "Manage Aspects" And I should see "Aspect creation failed."