Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Then(/he should see the list:/) do |list|
- list.hashes.first.keys.each do |head|
- response.should have_xpath("//table[@class=\"list\"]//tr//th[contains(.,\"#{head}\")]")
- end
- list.hashes.each do |hash|
- hash.each_pair do |key, value|
- response.should have_xpath("//table[@class=\"list\"]//tr//td[contains(.,\"#{value}\")]")
- end
- end
- end
Add Comment
Please, Sign In to add comment