Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Then for each row, I should see some "FOOD"
| FOOD |
| Cheese |
| Carob Chips |
# Define our pre-fixing reg-ex
Then /^for each row, (.+)$/ do |step_suffix, table|
table.hashes.each do |row|
step step_suffix.sub!('FOOD', row['Food'])
end
End
Then /^I should see some "(.+)"$/ do |food|
verify(page).to have_content(food)
End
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment