shouldaをインストールしてみる
http://thoughtbot.com/projects/shoulda
RSpecよりお手軽そうなshouldaを自宅のPCにいんすとろーるしてみる。
rails以外で使う場合にはgemでインストールが出来る模様
(`〜´)タリー sudo gem install shoulda [~/]
Need to update 1 gems from http://gems.rubyforge.org
.
complete
Successfully installed Shoulda-1.0.0
Installing ri documentation for Shoulda-1.0.0...
Installing RDoc documentation for Shoulda-1.0.0...
うん、お手軽お手軽。
んじゃ、railsで使う場合はこのまま使えるかというとそうでもない。
ActiveRecordやらcontrollerやらのヘルパがついているpluginを
入れなきゃならんらしいということで。svnのリポジトリから
引っ張ってくることに。*1
(`〜´)タリー svn ls https://svn.thoughtbot.com/plugins/shoulda/tags
[~/project/xxxxx]
rel-1.0/
rel-1.1/
rel-1.2/
中略
rel-3.0.4/
rel-3.0.5/
最新のはrel-3.0.5らしいということで
(`〜´)タリー svn export https://svn.thoughtbot.com/plugins/shoulda/tags/rel-3.0.5 vender/plugin/shoulda
はい、無事にインストール完了。