Created
August 25, 2009 23:42
-
-
Save bitbckt/175134 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: Managed Categories | |
As a user | |
I want to manage categories | |
So that I can present readers with an easily navigable list of recipe types | |
Scenario: New category | |
Given a tag exists with a name of "vegan" | |
And a user exists with "admin/password" | |
And I log in with "admin/password" | |
And I am on the new category page | |
When I fill in "Name" with "Vegetarian" | |
And I fill in "Tags" with "vegan" | |
And I press "Save" | |
Then a category named "Vegetarian" exists | |
And category "Vegetarian" has tag "vegan" | |
Scenario: Search by category | |
Given a category exists with a name of "Vegetarian" | |
And category "Vegetarian" is tagged with "vegan" | |
And a recipe exists with a name of "Tofu" | |
And recipe "Tofu" is tagged with "vegan" | |
When I am on the public recipes page | |
And I follow "Vegetarian" | |
Then I should see "Tofu" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment