Zach Dennis wrote: > > Does your outputted HTML properly include a tbody in the table? If so > the selector you are using won't work. You would need to make match > any descendant rather than any direct child, ie: "table > tr#entity_id_1" >
I cannot find one if there is. > On a related note (although not specific your problem at hand) to > generate an id on an ActiveRecord model you can use the dom_id helper > method provided by Rails. ie: "dom_id(entity)". You can use this both > in your template and your steps/specs. And rather than hardcoding > "table tr" CSS selectors why not just give your table an id like > "entities" and then use dom_id to give your rows ids? Should you > change the display to a ul or ol you wouldn't have to go back and > change your CSS selectors, Could you provide a reference to an example of how this is done? I am afraid that the API was insufficient to clarify this for me. Thank you for your help. -- Posted via http://www.ruby-forum.com/. _______________________________________________ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users