View testing with hpricot
I had to test some Sinatra views the other day (and neither am I a big fan of Rails’ assert_tag) and thought that Hpricot would be excellent for the job. Enter Google: Luke Redpath: Testing your Rails views with Hpricot. Unfortunately all the links were broken, so I cooked up a few helpers based on that blog post, git em:
It gets my view testing done. Thank you, _why.