rspec2, rails3, and spork with drb to get faster tests

I started using rspec2 and rails3 on a project and wanted faster tests.
        gem 'spork'
        bundle install
        spork --bootstrap
Bootstrapping will edit your spec_helper.rb file with some instructions. I had a vanilla spec_helper file, so everything got moved into the Spork.prefork block. Also, I'm using autotest, so I added --drb to my .rspec file. Finally:
        spork &
I only had 15 tests at the time that I did this, but they went from running in 6 seconds to running in 1.5 seconds. Significant. UPDATE: From the comments, here's a fix for running rake on Windows ("can't find executable rake"):

Established 2005 · Databasically © 2016