Skip to content

Instantly share code, notes, and snippets.

@beef
Created August 14, 2009 11:05
Show Gist options
  • Save beef/167769 to your computer and use it in GitHub Desktop.
Save beef/167769 to your computer and use it in GitHub Desktop.
Scenario: Create an Article
Given I am on the new article page
When I fill in the article details
And I press "Save"
Then I should be on articles admin page
And I should see 'Article successfully created'
Scenario: Update a article
Given there are saved articles
And I am on the articles admin page
When I follow an articles 'edit' link
And I amend articles details
And I press "Save"
Then I should articles admin page
And I should see 'Article successfully updated'
Scenario: Publish a article
Given I am creating a article
When I press "Publish"
Then the article should be published
Scenario: Publish a article
Given I am updating a article
When I press "Publish"
Then the article should be published
Scenario: Publish a article
Given I am updating or creating a article
When I press "Publish"
Then the article should be published
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment