2009/6/14 Marnen Laibow-Koser <[email protected]>: > > Colin Law wrote: > [...]> I found a solution to this by adding span tags round my text >> fragments, so that the html is now >> <p><span>some text</span><br><span>some more text</span></p> > [...] >> This works but feel there must be a better solution than adding extra >> tags to the html just so that it can be tested. > > Indeed. Try using the regexp I gave you as a simple string match on > response.body , or perhaps go for an XPath-based solution (with RSpec, > that would be rspec_hpricot_matchers, but I don't know if that works > without RSpec). >
OK, it looks as if I will just have to accept that it cannot be done with assert_select. Many thanks for the help 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 -~----------~----~----~----~------~----~------~--~---

