I always found a bit embarrassing to configure Spork gem or even use Zeus server to run my specs and features. But fortunately, a few weeks ago Rails 4.1 was released with Spring application preloader by default. I found really sweet because it is totally transparent for the developer and runs in the background the first time you use it.

I usually let Guard running in iTerm, but sometimes I like to run simple test from the editor and that’s why I use RubyTest plugin in Sublime Text. The cool thing is that you can change the command executed in: Preferences > Package Settings > RubyTest > Settings User and update it to use Spring.

[cc lang=”javascript” tab_size=”2″ lines=”40″]

{

“run_rspec_command”: “spring rspec {relative_path}”,
“run_single_rspec_command”: “spring rspec {relative_path}:{line_number}”,

“run_cucumber_command”: “spring cucumber {relative_path} –no-color”,
“run_single_cucumber_command”: “spring cucumber {relative_path} –no-color”,

}
[/cc]