Skip to content
This repository was archived by the owner on Aug 16, 2023. It is now read-only.
pedro edited this page Sep 12, 2010 · 46 revisions

rspec |
rspec-rails |
rspec-tmbundle |
rspec-dev |
contributing patches |
rspec website |
rspec at rubyforge

The rspec-rails repository holds the source for the rspec-rails gem/plugin. Clone this repo if you:

  • want to build the rspec-rails gem from the latest source
  • want to install it as a rails plugin in combination with the rspec plugin.

Install RSpec’s edge for rails <= 2.0.2

cd vendor/plugins
git clone git://github.com/dchelimsky/rspec.git
git clone git://github.com/dchelimsky/rspec-rails.git
cd ../../
script/generate rspec

Note: Need to document how to checkout release tags on Rails <= 2.0.2

If you are using git for your app, you’ll want to either remove or ignore the .git directories in the plugin directories.

Install RSpec’s edge for rails 2.1.0+ (current edge)

script/plugin install git://github.com/dchelimsky/rspec.git
script/plugin install git://github.com/dchelimsky/rspec-rails.git
script/generate rspec

Don’t forget to delete plugins/rspec_on_rails in case you had any previous version installed.

Install an RSpec release >= 1.1.4:

cd vendor/plugins
git clone git://github.com/dchelimsky/rspec.git
git clone git://github.com/dchelimsky/rspec-rails.git
cd rspec
git checkout 1.1.4
cd ../rspec-rails
git checkout 1.1.4
rm -rf rspec/.git
rm -rf rspec-rails/.git

(cd to RAILS_ROOT)

./script/generate rspec

If you are using git for your app, you’ll want to either remove or ignore the .git directories in the plugin directories.

Install an RSpec release from 1.1.0 to 1.1.3:

ruby script/plugin install http://rspec.rubyforge.org/svn/tags/REL_X_Y_Z/rspec
ruby script/plugin install http://rspec.rubyforge.org/svn/tags/REL_X_Y_Z/rspec_on_rails

Install an RSpec release from 0.8.x to 0.9.x (not really recommended at this point)

ruby script/plugin install http://rspec.rubyforge.org/svn/tags/REL_X_Y_Z/rspec
ruby script/plugin install http://rspec.rubyforge.org/svn/tags/REL_X_Y_Z/rspec_on_rails/vendor/plugins/rspec_on_rails

Install an RSpec release < 0.7.5 (REALLY NOT recommended at this point)

ruby script/plugin install http://rspec.rubyforge.org/svn/tags/REL_X_Y_Z/rspec
ruby script/plugin install http://rspec.rubyforge.org/svn/tags/REL_X_Y_Z/vendor/rspec_on_rails/vendor/plugins/rspec_on_rails
Clone this wiki locally