Rubies:
Here's a blog entry on how to use Why's Hpricot library inside assertions,
to constrain your Rails views:
···
--
Phlip
http://www.oreilly.com/catalog/9780596510657/
"Test Driven Ajax (on Rails)"
assert_xpath, assert_javascript, & assert_ajax