Re: [rspec-users] cucumber, finding a row in a table

2009-01-08 Thread James Byrne
I have tried to simplify this as much as possible. To the best of my ability to determine when one selects an html element via id then one obtains the entire element contents to the termination tag. So, I did this: <%=h entity.entity_name.titlecase -%> <%=h entity.entity_legal_

Re: [rspec-users] cucumber, finding a row in a table

2009-01-08 Thread James Byrne
I am still not getting this to work. Here is what I have done: In index.html.erb Short Name ... ... <% for entity in @entities %> <%=h entity.entity_name.titlecase -%> ... <%= "%06d" % entity.id -%> <%= link_to 'Show Entity', entity -%> <%= lin

Re: [rspec-users] cucumber, finding a row in a table

2009-01-06 Thread Zach Dennis
On Tue, Jan 6, 2009 at 4:08 PM, James Byrne wrote: > 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"

Re: [rspec-users] cucumber, finding a row in a table

2009-01-06 Thread James Byrne
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 (a

Re: [rspec-users] cucumber, finding a row in a table

2009-01-05 Thread Zach Dennis
On Mon, Jan 5, 2009 at 4:18 PM, James Byrne wrote: > I generate the following html on the page in question > > >Just An Entity > >CORP >01 >Show Entity >Edit Entity >Destroy Entity > > > > I have this step definition: > > When /I delete the "(.*)" entity/ do

[rspec-users] cucumber, finding a row in a table

2009-01-05 Thread James Byrne
I generate the following html on the page in question Just An Entity CORP 01 Show Entity Edit Entity Destroy Entity I have this step definition: When /I delete the "(.*)" entity/ do |row| visits entities_url my_entity = Entity.find_by_entity_name(