Colin Law wrote: [...] >> The right point for the break is after 'some text' and before 'some more >> text'
How about assert_select "p", /some text.*<br[^>]*>some more text/m ? BTW, you shouldn't be using <br/> in the self-closing form unless you're generating XHTML (it is not actually valid HTML), and you shouldn't be generating XHTML unless you're serving it with the XHTML MIME type -- at which point IE won't understand the document! So in general, HTML 4 is the way to go (the html_output plugin will help). See the recent thread where Rimantas convinced me of this (admittedly after some argument from me). Best, -- Marnen Laibow-Koser http://www.marnen.org [email protected] -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

