Last active
September 4, 2018 15:25
-
-
Save robcolburn/e5890e82782c5c4d0b5719f75518d2f2 to your computer and use it in GitHub Desktop.
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 for each row, I should see some "FOOD" | |
| FOOD | | |
| Cheese | | |
| Carob Chips | |
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
# 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