Skip to content

Instantly share code, notes, and snippets.

@pragmaticpat-zz
Created October 15, 2011 23:58
Show Gist options
  • Save pragmaticpat-zz/1290330 to your computer and use it in GitHub Desktop.
Save pragmaticpat-zz/1290330 to your computer and use it in GitHub Desktop.
A bad way to check for content with cucumber / capybara?
Then /^I should see$/ do |table|
table.hashes.each do |stuff|
stuff.keys.each { |key| page.should have_content stuff[key] }
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment