Skip to content

Instantly share code, notes, and snippets.

@foca
Created September 12, 2009 21:03
Show Gist options
  • Save foca/185983 to your computer and use it in GitHub Desktop.
Save foca/185983 to your computer and use it in GitHub Desktop.
story <<-STORY do
As a developer,
I want to use the simplest tool for the job,
So that I don't waste time learning useless grammars
STORY
scenario "sweet and simple" do
# given
User.make(:name => "john")
# when
visit "/"
click_link "login"
# then
assert_select "h1", "Log in"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment