[rspec-users] Webrat or RSpec and Table Headers

Shea Levy shea at shealevy.com
Wed Dec 29 01:14:44 EST 2010



Hi all, 

Suppose I have a table that lists all of my products, that
includes a a  somewhere in the first , and each product has its data held
within a . After updating a product's description, I want to write
something like: 

within "tr#category#{category.id}" do
 under_header
"Description" do |scope|
 scope.contains "New Description"
 end
end 

in a
Cucumber/webrat feature definition or 

response.should
have_tag("tr#category1") do
 under_header "Description" do
 text => "Howdy

end
end 

in an RSpec spec. Is there anything like this available, any way
to search within a specific table column by specifying the header?


Cheers,
 Shea
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/rspec-users/attachments/20101228/cd64a161/attachment.html>


More information about the rspec-users mailing list