Skip to content

Instantly share code, notes, and snippets.

@spraints
Created April 21, 2009 14:10
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 spraints/99159 to your computer and use it in GitHub Desktop.
Save spraints/99159 to your computer and use it in GitHub Desktop.
# 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