Skip to content

Instantly share code, notes, and snippets.

@robcolburn
Last active September 4, 2018 15:25
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
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