Last active
August 29, 2015 14:11
-
-
Save damienstanton/9e6c4b9bdf758f52fdcc to your computer and use it in GitHub Desktop.
Example Behave File
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
@tags @tag | |
Feature: Do A Thing | |
As [agent] | |
In order to accomplish the goal of a thing | |
I need to do a thing | |
Background: some requirement for this test | |
Given [agent] is an admin | |
And there are no other admins logged in | |
Then admin permissions are granted | |
But if [agent] is not an admin | |
Then admin permissions are not granted | |
Scenario: admin makes a change | |
Given the user has sudo | |
When the user deletes all the things | |
Then the things should all be deleted | |
But if the user does not have sudo | |
Then nothing will happen | |
# etc... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment