ma.gnolia

Sign In | Learn More

Skip to main content


Testing your Rails views with Hpricot — Luke Redpath Testing your Rails views with Hpricot — Luke Redpath

  • Not rated yet.
  • Copy Bookmark

Rails comes with the built-in assert_tag method but I've always found it clunky and a pain in the arse to use. By combining the Hpricot library and a few useful helper functions, you can now test the output of your Rails views in Test::Unit::TestCase easily using Hpricot's support for CSS selector searches.

3 other people have commented on this bookmark

Name Title Rating When
1_32 R. Testing your Rails views with Hpricot — Luke Redpath
Not rated yet.
February 1, 2007
13499_32 John Testing your Rails views with Hpricot — Luke Redpath
Rated 3 stars out of 5.
January 20, 2007

How to test your rails views with hpricot.

9_32 Jason Testing your Rails views with Hpricot
Not rated yet.
November 29, 2006

2 groups have this bookmark in their collection

Name Title Rating When
3818_32 Learning Ruby on Rails Testing your Rails views with Hpricot — Luke Redpath
Not rated yet.
February 29, 2008

Rails comes with the built-in assert_tag method but I've always found it clunky and a pain in the arse to use. By combining the Hpricot library and a few useful helper functions, you can now test the output of your Rails views ...

3593_32 SouthBend.rb Testing your Rails views with Hpricot — Luke Redpath
Rated 3 stars out of 5.
January 20, 2007

How to test your rails views with hpricot.