Skip to content

Commit

Permalink
Refactored so all basic form validations in one scenario outline
Browse files Browse the repository at this point in the history
  • Loading branch information
baphled committed Jun 18, 2010
1 parent 6ad6874 commit 8b53359
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions features/plain/form_validations.feature
Expand Up @@ -18,16 +18,17 @@ Feature: Validation of forms
And we fill in the <model> <property> with '<value>'
Then submit the form
And the "<model>" "<property>" "<input_type>" should have an error class
And I should see "<error>" within "<selector>"

Examples: Models and their properties
| controller | model | value | property | input_type |
| features | feature | to | title | input |
| features | feature | to do | in_order | input |
| features | feature | use | as_a | input |
| features | feature | not | i_want | input |
| projects | project | so | title | input |
| projects | project | foo | aim | input |
| projects | project | too short | description | input |
| projects | project | blah/ | location | input |
| steps | step | | title | input |
| stories | story | blah | scenario | input |
| controller | model | value | property | input_type | selector | error |
| features | feature | to | title | input | li#feature_title_input | Please enter at least 6 characters. |
| features | feature | to do | in_order | input | li#feature_in_order_input | Please enter at least 7 characters. |
| features | feature | use | as_a | input | li#feature_as_a_input | Please enter at least 4 characters. |
| features | feature | not | i_want | input | li#feature_i_want_input | Please enter at least 7 characters. |
| projects | project | so | title | input | li#project_title_input | Please enter at least 3 characters. |
| projects | project | foo | aim | input | li#project_aim_input | Please enter at least 6 characters. |
| projects | project | too short | description | input | li#project_description_input | Please enter at least 12 characters. |
| projects | project | blah/ | location | input | li#project_location_input | Must be a valid project location on your system. |
| steps | step | | title | input | li#step_title_input | Please enter at least 12 characters. |
| stories | story | blah | scenario | input | li#story_scenario_input | Please enter at least 7 characters. |

0 comments on commit 8b53359

Please sign in to comment.