Skip to content

Instantly share code, notes, and snippets.

@karlseguin
Created June 4, 2010 20:02
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 karlseguin/425873 to your computer and use it in GitHub Desktop.
Save karlseguin/425873 to your computer and use it in GitHub Desktop.
Then /^I should see "([^\"]*)" before "([^\"]*)"$/ do |first, second|
assert_not_nil page.body.match(/#{first}.*#{second}/), "Should see #{first} before #{second}"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment