Adding RSpec to Rails Project using Git

May 30, 2008

Quick reminder how to do this…

Pre-Requisites

  • rails project
  • using git git init .

Installation

Plugins go in vendor/plugins

git submodule add git://github.com/dchelimsky/rspec.git vendor/plugins/rspec
git submodule add git://github.com/dchelimsky/rspec-rails.git vendor/plugins/rspec-rails

Then run

script/generate rspec

Note: You need to run the following two commands (or at least the last one) every time you clone this repo.

git submodule init
git submodule update