Results 1 to 1 of 1
Jul 7, 2006, 04:29 #1
Alternative to assert_tag for view testing
I don't know about anybody else but I've always hated the assert_tag function that comes with Rails - I've always found it really clunky.
Anyway, whytheluckystiff released a great little HTML parser called Hpricot the other day and I've written a small Rails Test::Unit extension that lets you test your view using Hpricot.
All the details: