RJS Assertions plugin

Plugin details

Several RJS-specific assertions for testing your Ruby on Rails applications.

Websitehttp://rubyforge.org/projects/rjsassertions/ Repositorysvn://rubyforge.org/var/svn/rjsassertions/trunk Author Brasten Sager Tags rjs, assert LicenseMIT

Documentation

Install the plugin:
ruby script/plugin install svn://rubyforge.org/var/svn/rjsassertions/trunk

assert_rjs_tag & assert_rjs_no_tag
- Same options as assert_tag/assert_no_tag. :rjs option can added to limit scope of assert. Example:

  # Asserts the content exists in any HTML fragments.
  assert_rjs_tag :content => 'Hello World'	

  # Asserts the content exists in HTML fragments being added
  # to or replacing the greeting_div_id HTML.
  assert_rjs_tag :rjs => {:block => 'greeting_div_id'}.
            :content => 'Hello World'	


assert_rjs_visual_effect:
- Accepts two arguments, a string representing the id of the block the effect should be performed on, and a symbol or string of the effect. (Currently only supports "show" and "hide") Example:

  assert_rjs_visual_effect 'greeting_div_id', :show

Further Documentation

There is currently no advanced documentation for this plugin.

New documentation

Edit plugin | Back in time (1 older version) | Last edited by: hardway, 9 months ago