Created
December 8, 2009 18:01
-
-
Save kfitzpatrick/251855 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 /^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