Adding RSpec to Rails Project using Git

May 30, 2008

Quick reminder how to do this…


  • rails project
  • using git git init .


Plugins go in vendor/plugins

git submodule add git:// vendor/plugins/rspec
git submodule add 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