You are here: Browse Railsplugins Assert Select
= assert_select plugin for Rails
Adds the assert_select method for use in Rails functional tests. Simplifies content testing using CSS selectors.
You can use assert_select to select elements from the controller response page and perform equality tests.
You can test that the selected element(s) exist, has specific text content, or test the number of elements selected.
Elements are selected using CSS selectors. You can use the same CSS selectors to style the HTML page and test its content.
See Test::Unit::AssertSelect and HTML::Selector for more information.
Examples
Copyright© 2006 Assaf Arkin, under Creative Commons Attribution and/or MIT License
Developed for http://co.mments.com
Code and documention: http://labnotes.org
NOTE: This description has been extracted from the Plugin README and so the formatting may need updating to make browser friendly