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).

> 
> Colin

Best,
--
Marnen Laibow-Koser
http://www.marnen.org
mar...@marnen.org
-- 
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 rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to