Created
May 18, 2010 20:33
-
-
Save aslakhellesoy/405502 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@focus | |
Feature: Admin Access | |
In order to view the admin page | |
As a user | |
You must be an admin | |
Scenario Outline: Redirect to four04 if user is not admin | |
Given the following user records | |
| username | password | factory | | |
| robert | foobarme | rater | | |
| george | foobarme | contributor | | |
| beener | foobarme | admin | | |
Given I am logged out | |
Given I am logged in as "<login>" with password "foobarme" | |
When I visit the admin home page | |
Then I should be on the <where> page | |
Examples: | |
| login | where | | |
| robert | four04 | | |
| george | four04 | | |
| beener | four04 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment