Generate project without tests:
rails new project_name -T
Edit Gemfile:
group :development do
gem 'rspec-rails'
end
group :test do
gem 'rspec'
gem 'spork'
end
Setup dependencies:
bundle install
rails generate rspec:install
Setup spork:
spork --bootstrap
Open spec/spec_helper.rb in your favorite editor and change its contents according to instructions provided by spork and add --drb option to .rspec
Setup autotest:
gem install autotest
gem install autotest-rails-pure
gem install autotest-notification
Linux only:
apt-get install libnotify-bin
Mac only:
Install notifications support libraries
gem install autotest-fsevent
gem install autotest-growl
and update .autotest with:
require 'autotest/growl'
require 'autotest/fsevent'
Run everything:
spork
autotest
Enjoy! :)