RSpecをPluginとしてインストール

Ruby on RailsRSpecをPluginとしてインストールする方法。

Rails 2.3.5で確認

2010/4/9現在の最新バージョンは
rspec:1.3.0
rspec-rails:1.3.2

以下Rails_Rootで

rspecのインストール

$ ruby script/plugin install git://github.com/dchelimsky/rspec.git -r 'refs/tags/1.3.0'

rspec-railsのインストール

$ ruby script/plugin install git://github.com/dchelimsky/rspec-rails.git -r 'refs/tags/1.3.2'

generateでscript/spec やspecディレクトリが作成される。

$ ./script/generate rspec

使用方法

$ ./script/spec -v
rspec 1.3.0


参考URL:
RSpecのgithub
http://github.com/dchelimsky/rspec

インストール方法(2.1.0以前とか
http://wiki.github.com/dchelimsky/rspec/rails