Multi Rails plugin

Plugin details

MultiRails lets you test your Rails plugin or app against many versions of Rails in one sweep.

Websitehttp://multi-rails.rubyforge.org/ Repositoryhttp://robsanheim.googlecode.com/svn/trunk/multi_rails/ Author Rob Sanheim Tags Test LicenseMIT

Documentation

Install the plugin:
ruby script/plugin install http://robsanheim.googlecode.com/svn/trunk/multi_rails/

Run the multi_rails bootstrap command to get your Rails app ready to go with multi_rails - this will add a require line to the top of your environment.rb needed for multi_rails to work right.

    script/multi_rails_runner bootstrap



Run your tests against all versions of Rails installed (the default):

    script/multi_rails_runner


or run our tests against the most recent version of Rails you have installed:

    script/multi_rails_runner latest


or just a specific version:

    MULTIRAILS_RAILS_VERSION=1.2.5 script/multi_rails_runner one



== INSTALLING FOR PLUGINS

Install multi_rails

    sudo gem install multi_rails



In your projects Rakefile, require the multi_rails Rake tasks.

require "load_multi_rails_rake_tasks"



Run rake -T to verify you see the multi_rails tasks.

    rake -T multi_rails


# should see "rake test:multi_rails:all, rake test:multi_rails:latest...etc"

In your test_helper, require multi_rails_init *before* any rails specific requires (activerecord, actioncontroller, activesupport, etc).

require 'multi_rails_init'



Run the multi_rails:all rake task to run your test suite against all versions of Rails you have installed via gems. Install other versions of Rails using rubygems to add them to your test suite.

For changing the Rails version under test, set the environment variable MULTIRAILS_RAILS_VERSION to version you want, and run the multi_rails:one task or just run a test class directly.

Further Documentation

There is currently no advanced documentation for this plugin.

New documentation

Edit plugin | (0 older versions) | Last edited by: Guest, 7 months ago