Generate project without tests:
rails new project_name -TEdit Gemfile:
group :development do
gem 'rspec-rails'
end
group :test do
gem 'rspec'
gem 'spork'
endSetup dependencies:
bundle install
rails generate rspec:installSetup spork:
spork --bootstrapOpen 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-notificationLinux only:
apt-get install libnotify-binMac only:
Install notifications support libraries
gem install autotest-fsevent
gem install autotest-growland update .autotest with:
require 'autotest/growl'
require 'autotest/fsevent'Run everything:
spork
autotestEnjoy! :)