Testing your Rails views with Hpricot — Luke Redpath
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 | |
|---|---|---|---|---|
| R. | Testing your Rails views with Hpricot — Luke Redpath |
Not rated yet.
|
February 1, 2007 | |
| John | Testing your Rails views with Hpricot — Luke Redpath |
Rated stars out of 5.
|
January 20, 2007 | |
How to test your rails views with hpricot. |
||||
| 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 | |
|---|---|---|---|---|
| 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 ... |
||||
| SouthBend.rb | Testing your Rails views with Hpricot — Luke Redpath |
Rated stars out of 5.
|
January 20, 2007 | |
How to test your rails views with hpricot. |
||||
