This file contains 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 for each row, I should see some "FOOD" | |
| FOOD | | |
| Cheese | | |
| Carob Chips | |
This file contains 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
# 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