Skip to content

Instantly share code, notes, and snippets.

@bowsersenior
Created March 17, 2011 05:48
Show Gist options
  • Save bowsersenior/873895 to your computer and use it in GitHub Desktop.
Save bowsersenior/873895 to your computer and use it in GitHub Desktop.
require 'acceptance/acceptance_helper'
feature "Articles", %q{
In order to have an awesome blog
As an author
I want to create and manage articles
} do
background do
Article.create!(:title => 'One')
Article.create!(:title => 'Two')
end
scenario "Article index" do
visit '/articles'
page.should have_content('One')
page.should have_content('Two')
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment