Skip to content

Instantly share code, notes, and snippets.

@ludicast
Created August 28, 2010 02:08
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 ludicast/554565 to your computer and use it in GitHub Desktop.
Save ludicast/554565 to your computer and use it in GitHub Desktop.
with_existing :article do
on_visiting edit_article_path do
it { lets_me_edit_the(:article) }
it { shows_failure_on_invalid_update_of(:article) }
end
where it_is_unpublished do
on_visiting articles_path do
specify { page.should_not have_content(@article.name) }
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment