Want to test your RJS?

Posted by kev Sun, 28 May 2006 21:27:00 GMT

It’s coming. Check back tomorrow for the guide and information.

    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', "Here's text from insert_html"
    assert_rjs :redirect_to, :action => 'list'
    assert_rjs :remove, "post_1", "post_2", "post_3"
    assert_rjs :replace, :bottom, 'This is something to replace'
    assert_rjs :replace_html, "This is something for replace_html"
    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'

Posted in , ,

Comments are disabled