Created
October 15, 2011 23:58
-
-
Save pragmaticpat-zz/1290330 to your computer and use it in GitHub Desktop.
A bad way to check for content with cucumber / capybara?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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