Skip to content

Instantly share code, notes, and snippets.

@tanordheim
Created September 5, 2010 14:47
Show Gist options
  • Save tanordheim/566066 to your computer and use it in GitHub Desktop.
Save tanordheim/566066 to your computer and use it in GitHub Desktop.
Feature: Administration interface
So that I can administer my site
As an administrator
I want to make sure I can access the admin interface if I am authenticated
Scenario: Redirect me to the login page if I am not authenticated
Given I am not authenticated as an admin
When I go to the admin dashboard
Then I should see the form "admin_new"
Scenario: I should see the dashboard if I am authenticated
Given I am authenticated as an admin
When I go to the admin dashboard
Then I should see "This is the dashboard"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment