Created
April 21, 2009 14:10
-
-
Save spraints/99159 to your computer and use it in GitHub Desktop.
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
# feature: | |
# Then I should see the following records: | |
# |row1|thing| | |
# |row2|other thing| | |
# step definition: | |
Then /^I should see the following records:$/ do |records| | |
records.rows.each do |row| | |
row.each do |value| | |
unless value.blank? | |
response.should contain(value) | |
end | |
end | |
end | |
end | |
# would like: | |
Then /^I should see the following .*:$/ do |records| | |
response.should contain_table(records) | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment