tracks/vendor/plugins/arts
Luke Melia 35ae5fc431 Next step in upgrading Tracks to Rails 2.2. Some highlights:
* Ran rake rails:update
* Added old actionwebservice framework
* Updated RSpec and RSpec-Rails
* Removed asset_packager plugin (not compatible, Scott no longer maintaining), and replaced with bundle_fu. See the bundle_fu README for more info.
* Hacks to UJS and ARTS plugins, which are no longer supported. Probably should move off both UJS and RJS.
* Hack to flashobject_helper plugin (upgrade to Rails 2.2-compatible version if/when it comes out.)
* Hack to skinny-spec plugin, for Rails 2.2 compatibility. Should check for official release.
* Hacks to resource_feeder plugin, for Rails 2.2 compatibility. Should check for official release (not likely) or move off it.
* Addressed some deprecation warnings. More to come.
* My mobile mime type hackery is no longer necessary with new Rails features. Yay!
* Updated environment.rb.tmpl with changes

TODO:
* Restore view specs marked pending
* Fix failing integration tests.
* Try selenium tests.
* Investigate OpenID support.
* Address deprecation warnings.
* Consider moving parts of environment.rb to initializers
* Address annoying config.gem warning about highline gem
2008-11-30 00:34:15 -05:00
..
lib Next step in upgrading Tracks to Rails 2.2. Some highlights: 2008-11-30 00:34:15 -05:00
test Removed superfluous 'tracks' directory at the root of the repository. 2008-05-20 21:28:26 +01:00
about.yml Removed superfluous 'tracks' directory at the root of the repository. 2008-05-20 21:28:26 +01:00
init.rb Removed superfluous 'tracks' directory at the root of the repository. 2008-05-20 21:28:26 +01:00
install.rb Removed superfluous 'tracks' directory at the root of the repository. 2008-05-20 21:28:26 +01:00
README Removed superfluous 'tracks' directory at the root of the repository. 2008-05-20 21:28:26 +01:00

ARTS is Another RJS Test System

For a complete tutorial, see http://glu.ttono.us/articles/2006/05/29/guide-test-driven-rjs-with-arts.

Usage:
  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'
  assert_rjs :replace, 'completely_replaced_div', '<p>This replaced the div</p>'
  assert_rjs :replace, 'completely_replaced_div', /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'

For the square bracket syntax (page['some_id'].toggle) use :page followed by the id and then subsequent method calls. Assignment requires a '=' at the end of the method name followed by the value.

  assert_rjs :page, 'some_id', :toggle
  assert_rjs :page, 'some_id', :style, :color=, 'red'