Skip to content

Instantly share code, notes, and snippets.

@dcrosby42
Created March 22, 2012 02:04
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 dcrosby42/2155134 to your computer and use it in GitHub Desktop.
Save dcrosby42/2155134 to your computer and use it in GitHub Desktop.
Sample of using FirePoll.patiently in a web spec
patiently do
page.should have_content("Task Table")
page.should have_selector(".row:nth-child(1)", text: "Ride to work")
page.should have_selector(".row:nth-child(2)", text: "Write some code")
page.should have_selector(".row:nth-child(3)", text: "Go to The Meanwhile")
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment