Skip to content

Commit

Permalink
Removed all duplicate steps
Browse files Browse the repository at this point in the history
  • Loading branch information
baphled committed Jun 18, 2010
1 parent 8b53359 commit 087848a
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 58 deletions.
15 changes: 0 additions & 15 deletions features/plain/feature_form_validation.feature
Expand Up @@ -2,21 +2,6 @@ Feature: Feature forms should have client side validations
In order to improve the performance of the salad
As a system feature
I want to allow for validation of the feature forms

Scenario Outline: Feature fields that need validation should display the appropriate error message and error class
Given I can view the features page
When I click new features
And we fill in the feature <property> with '<value>'
Then submit the form
And I should see "Please enter at least <number> characters." within "<selector>"
And the "<model>" "<property>" "<input_type>" should have an error class

Examples: Form fields and their error messages
| model | property | value | number | selector | input_type |
| feature | title | to | 6 | li#feature_title_input | input |
| feature | in_order | to do | 7 | li#feature_in_order_input | input |
| feature | as_a | use | 4 | li#feature_as_a_input | input |
| feature | i_want | not | 7 | li#feature_i_want_input | input |

Scenario: A feature must be unique
Given I can view the features page
Expand Down
28 changes: 0 additions & 28 deletions features/plain/project_form_validation.feature
Expand Up @@ -2,34 +2,6 @@ Feature: Must be able to deal with our projects validations on our forms
In order for us to save on resources
As a user
I want the form to be validated on the back end

Scenario: A projects title should be no less than 3 letters long
Given I can view the projects page
When I click new projects
And we fill in the project title with 'so'
Then submit the form
And the error message should be "Please enter at least 3 characters."

Scenario: A projects aim should be no less than 6 characters long
Given I can view the projects page
When I click new projects
And we fill in the project aim with 'somit'
Then submit the form
And the error message should be "Please enter at least 6 characters."

Scenario: A JS error is displayed if a projects description is less than 12 characters long
Given I can view the projects page
When I click new projects
And we fill in the project description with 'too short'
Then submit the form
And the error message should be "Please enter at least 12 characters."

Scenario: A projects location must be a valid project location on their system
Given I can view the projects page
When I click new projects
And we fill in the project location with '/blah/'
Then submit the form
And the error message should be "Must be a valid project location on your system."

Scenario: A project must be unique
Given I can view the projects page
Expand Down
8 changes: 0 additions & 8 deletions features/plain/step_form_validation.feature
Expand Up @@ -3,14 +3,6 @@ Feature: Step needs basic validations
As a system feature
I want to be able to do basic validation oon a step

Scenario: A step need to be a minimum of 12 characters
Given I can view the steps page
When I click new steps
Then the new step form should be displayed
When we fill in the step title with 'Given'
Then submit the form
And the error message should be "Please enter at least 12 characters."

Scenario: A story invalid if it does not have 'Given' as a prefix
Given I can view the steps page
When I click new steps
Expand Down
7 changes: 0 additions & 7 deletions features/plain/stories_form_validation.feature
Expand Up @@ -3,13 +3,6 @@ Feature: Stories need to be validated
As a system process
I want to validate story attributes

Scenario: An invalid scenario should have a related error message
Given I can view the stories page
When I use the "New Story" link
And we fill in the story scenario with 'this'
Then submit the form
And the error message should be "Please enter at least 7 characters."

Scenario: If a story is not unique we need to display a error
Given I can view the stories page
When I use the "New Story" link
Expand Down

0 comments on commit 087848a

Please sign in to comment.