Skip to content

Instantly share code, notes, and snippets.

@techpeace
Created June 23, 2009 23:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save techpeace/134911 to your computer and use it in GitHub Desktop.
Save techpeace/134911 to your computer and use it in GitHub Desktop.
Feature: author manages posts

As an author

I want to be able to manage the posts on my blog

So that my audience can read my content


Background:

Given I am logged in as the following active author account:

| Name | Email address | Password | Phone number | Fax number |

| John | john@myvenue.com | pass | 555-555-1212 | 555-555-1213 |
 

Scenario: Author adds a new post

When I am on the post creation page for John

When I fill in the form with the following values:

| Title | Body |

| First post | Hello, blog! |

And I press "Add post"

Then I should be on the show post page for “First Post”

And I should see "Your post has been added."

And I should see "First post"

And I should see "Hello, blog!"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment