Zeus is great spork-like tool for forking the rake enviroment for better performance. It's great for rspec even faster than spork with ndb setup.
#install Zeus
gem install zeus
#install Zeus for guard
in your gem file, add
gem 'zeus'
gem 'guard-zeus'
then run bundle install
open Guardfile. in rspec block, change params to be:
guard 'rspec', :version => 2, all_on_start: false, all_after_pass: false, zeus: true, bundler: false do end
Then in your spec_helper.rb
remove
require 'rspec/autorun'
require 'rspec/autotest'
#Start Zeus
zues start
edit the boot.rb file or re save it
if the zeus rake and zeus cucumber is on waiting, try to remove the .zeus.socket file and zeus start
again to active the zeus again.
bundle exec guard
Or if you are a big fan of Sublime Text, now there is a Zeus addon for that.
In your Sublime Text 2 => Perference => Packages Settings=> RubyTesting =>Setting - User
update the config file as below
{
"run_cucumber_command": "zeus cucumber {relative_path} --no-color",
"run_single_cucumber_command": "zeus cucumber {relative_path}:{line_number} --no-color",
"run_rspec_command": "zeus rspec {relative_path}",
"run_single_rspec_command": "zeus rspec {relative_path}:{line_number}",
"check_for_rvm": true,
}
Then Save and reload!
After that you will be able to run command
+ shift
+ t
to run the test cases.