On 30 August 2010 15:47, Marnen Laibow-Koser [email protected]
google has not provided an example of this type.
Any help would be much appreciated.
First off: you shouldn’t ever be using tags. That’s 1990s physical
styling. That’s bad. You should be using a semantically named
instead. But you probably knew that already.
Yes I know, it was generated by a rails scaffold some years ago if I
remember correctly. It is a rarely used admin page so I have not got
round to re-factoring it yet. It is all a matter of priorities of
course. Also of course this is one case where re-factoring may cause
existing tests to fail.
Now to your question…I think I’d use assert_select ‘p’, :html =>
‘textvalue’. Does that help?
Yes of course, I don’t think I have ever had to use :html, it always
seems like a bit of a cop-out but it should fix my problem.