[rspec-users] problems matching generated html output...

Patrick J. Collins patrick at collinatorstudios.com
Thu Nov 3 19:07:03 EDT 2011

> So, I am writing tests for a presenter class that outputs html markup.
Actually now that I am thinking about it..  Would you guys recommend that I use
something like Nokogiri to parse the content and test for things like number of
children, classes, ids, etc, rather than just comparing the raw HTML?

Patrick J. Collins

More information about the rspec-users mailing list