On 30 August 2010 16:44, Chris Mear <[email protected]> wrote: > On 30 August 2010 15:47, Marnen Laibow-Koser <[email protected]> wrote: >> Colin Law wrote: >>> I have the following html >>> <p><b>text</b>value</p> >>> I can use >>> assert_select "p>b", "text" >>> to check the text portion, and >>> assert_select "p", "value" >>> to check that the value appears in a <p>. I cannot work out how to >>> check that the two are in the same <p>. I have used assert_select for >>> much more complex tasks but my mind seems to have gone blank and >>> google has not provided an example of this type. >>> >>> Any help would be much appreciated. >> >> First off: you shouldn't ever be using <b> tags. That's 1990s physical >> styling. That's *bad*. You should be using a semantically named <span> >> instead. But you probably knew that already. > > Actually, it's back in in HTML5... > > http://dev.w3.org/html5/spec/Overview.html#the-b-element > > Everything old is new again.
Though actually I think my use case is not such as described there, it being a list of column names (bold) and values, generated by a Rails scaffold some years ago. Colin -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

