Skip to content

Instantly share code, notes, and snippets.

@robcolburn
Last active September 4, 2018 15:25
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 robcolburn/e5890e82782c5c4d0b5719f75518d2f2 to your computer and use it in GitHub Desktop.
Save robcolburn/e5890e82782c5c4d0b5719f75518d2f2 to your computer and use it in GitHub Desktop.
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