Skip to content

Instantly share code, notes, and snippets.

@joefiorini
Created November 17, 2008 16:32
Show Gist options
  • Save joefiorini/25815 to your computer and use it in GitHub Desktop.
Save joefiorini/25815 to your computer and use it in GitHub Desktop.
======================================================= BAD
Scenario: User selects a group on the news widget
Given there are articles for each group
When I select a group
Then the news list should display news for the group I selected
======================================================= BAD
Scenario: User selects the BDD group
Given there are 4 articles in the BDD group
When I select the BDD group
Then the news list should display the 4 articles from the BDD group
======================================================= GOOD
Scenario: User selects the BDD group
Given there is an article in the BDD group named Rspec
And there is an article in the TDD group called NUnit
When I select the BDD group
Then the news list should show the article named Rspec
And the news list should not show the article named NUnit
======================================================= GOOD
Scenario: Admin adds news to a particular group
Given there are 4 articles in the BDD group
When I add an article to the BDD group named Cucumber
Then there should be 5 articles in the BDD group
And there should be an article named Cucumber in the BDD group
Scenario: User selects a group on the news widget
Given there are articles for each group
When I select a group
Then the news list should display news for the group I selected
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment