Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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