Assert_hpricot

Rubies:

Here’s a blog entry on how to use Why’s Hpricot library inside
assertions,
to constrain your Rails views: