Forum: Ruby on Rails assert_tag for sibling tags ?

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
peter.fitzgibbons (Guest)
on 2005-11-25 13:12
(Received via mailing list)
Hello all,

I would like to assert_tag a row in a table, meaning that I need to
check a
'tr' with :child=>{:tag=>'td' ...} AND :child=>{:tag=>'td',
:child=>{:tag=>'img'}} ie; the table  has a content column and an image
column, I'd like to check a specific content and image for correct
rendering.

A. is this possible?
B. am I barking up the wrong tree to test specific elements in HTML ?

Thanks,

--
This topic is locked and can not be replied to.