Plugins - RJS Assertions

StarAdd to favorites

Provides 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 -

Brasten Sager

http://www.brastensager.com/typo/pages/rjsassertions

svn://rubyforge.org/var/svn/rjsassertions/trunk

Rails' (MIT)

  • Currently 4.2/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Testing

Tags

Comments

Add a comment

Search Plugins

Query syntax

Plugins by Category

Sponsors

Rails Kits: Get Code. Get Moving.

Have a comment?