install rspec

いつも忘れるのでメモ:

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

追記

environment.rbでconfig.gemを設定してrake gems:installのが確実か。


config.gem "rspec", :lib => false, :version => "1.2.7"
config.gem "rspec-rails", :lib => false, :version => "1.2.7.1"

Leave a Reply

Your email address will not be published.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <img localsrc="" alt="">