Agile Web Development

Build it. Launch it. Love it.

ARTS Plugin - Another RJS Testing System

NOTICE: THIS PLUGIN HAS BEEN ADDED TO RAILS. NO NEED TO INSTALL THIS ANYMORE.

ARTS is Another RJS Test System

To use it, add the line

  include Arts

to your Test::Unit::TestCase subclass or in your test_helper.rb

Use:

  assert_rjs :alert, 'Hi!'
  assert_rjs :assign, 'a', '2'
  assert_rjs :call, 'foo', 'bar', 'baz'
  assert_rjs :draggable, 'draggable_item'
  assert_rjs :drop_receiving, 'receiving_item'
  assert_rjs :hide, "post_1", "post_2", "post_3"
  assert_rjs :insert_html, :bottom, 'posts'
  assert_rjs :redirect_to, :action => 'list'
  assert_rjs :remove, "post_1", "post_2", "post_3"
  assert_rjs :replace, 'completely_replaced_div', 'This replaced the div'
  assert_rjs :replace_html, 'replaceable_div', "This goes inside the div"
  assert_rjs :show, "post_1", "post_2", "post_3"
  assert_rjs :sortable, 'sortable_item'
  assert_rjs :toggle, "post_1", "post_2", "post_3"
  assert_rjs :visual_effect, :highlight, "posts", :duration => '1.0'

Vitals

Home http://glu.ttono.us
Repository http://thar.be/svn/projects/plugins/arts/
License Rails' (MIT)
Tags Tag_red rjs
Rating (11 votes)
Owner Kevin Clark
Created 29 May 2006

Comments

  • kuahyeow
    22 August 2007

    http://dev.rubyonrails.org/ticket/6392 may have deprecated ARTS

  • Avatar
    Anonymous
    24 October 2007

    I have used your plugin, I was facing problem when I am trying to use it for validating replace_html. Give me proper soln.I have upadated a div and replaced it with partial in controller.

    No replace_html call found on div: 'ask_new_offer' and content:

Add a comment