Skip to content

Instantly share code, notes, and snippets.

@aslakhellesoy
Created May 18, 2010 20:33
Show Gist options
  • Save aslakhellesoy/405501 to your computer and use it in GitHub Desktop.
Save aslakhellesoy/405501 to your computer and use it in GitHub Desktop.
@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 <page>
Examples:
| login | page |
| robert | 404 |
| george | 404 |
| beener | 404 |
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment