Plugins - RJS Assertions
Add to favoritesProvides assert_rjs_tag method for your test cases. Mimics assert_tag syntax and functionality on RJS templates.
Usage:
assert_rjs_tag :rjs => {:block => ‘your_div_id’}, :tag => ‘span’, ...
assert_rjs_tag accepts the same arguments as assert_tag, with two exceptions:
* :rjs => MAY be specified. If no :rjs option is specified, assert_rjs_tag essentially checks ALL replaced/inserted HTML for the tag specified.
* Whereas assert_tag accepts a string for it’s first parameter equating to the tag type, assert_rjs_tag requires an explicit :tag => ‘type’ option (if you wish to specify the tag type).
Examples
- Coming Shortly -
http://www.brastensager.com/typo/pages/rjsassertions
svn://rubyforge.org/var/svn/rjsassertions/trunk
Rails' (MIT)
Testing
