Skip to content

Instantly share code, notes, and snippets.

@kfitzpatrick
Created December 8, 2009 18:01
Show Gist options
  • Save kfitzpatrick/251855 to your computer and use it in GitHub Desktop.
Save kfitzpatrick/251855 to your computer and use it in GitHub Desktop.
Then /^I should see a table where a row contains the cells? "([^\"]*)"$/ do |cells|
response.should have_tag('table') do |table|
table.should have_tag('tr') do |tr|
cells.split(/\s*,\s*/).each do |cell|
tr.should have_tag('td', :text => /#{cell}/)
end
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment