2. 自己紹介
describe Sonots do
its(:age) { should == 30 }
its(:hometown} { should == :Yamagata }
its(:company) { should == :DeNA }
it_should_behave_like “DeNA employee”
end
shared_examples_for “DeNA employee” do
it { should write(:perl) } #=> fail
end
※spec自己紹介ネタ元 take a glance at capybara2.0 by @okitan
13年1月16日水曜日
5. capistrano とは
• Capistrano was originally designed to simplify and automate
deployment of web applications to distributed environments, and
originally came bundled with a set of tasks designed for
deploying Rails applications.
• つまりは、ruby アプリのデプロイツール
$ bundle exec cap deploy
• Capistrano is a utility and framework for executing commands in
parallel on multiple remote machines, via SSH.
• デプロイ以外にも複数ホストにコマンドを並列実
行したりするフレームワークといえます
$ bundle exec cap shell
13年1月16日水曜日