Created
May 19, 2009 18:56
-
-
Save danlynn/114319 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
Feature: Manage Users | |
In order to manage user details | |
As a security enthusiast | |
I want to edit user profiles only when authorized | |
Scenario Outline: Show or hide edit profile link | |
Given the following user records | |
| username | password | admin | | |
| bob | secret | false | | |
| admin | secret | true | | |
Given I am logged in as "<login>" with password "secret" | |
When I visit profile for "<profile>" | |
Then I should <action> | |
Examples: | |
| login | profile | action | | |
| admin | bob | see "Edit Profile" | | |
| bob | bob | see "Edit Profile" | | |
| | bob | not see "Edit Profile" | | |
| bob | admin | not see "Edit Profile" | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment