Rspec/Spork: Disabling spork for one run
I have --drb set in my .rspec file, which means spork runs by default.
If, however, I want to run through tests once without spork, I either have to modify my 开发者_如何学Python.rspec, or stop spork.
Just wondering - is there some sort of flag such as --drb=false or --no-drb so that I can run tests once without drb?
Just add require 'spork'
at the beginning of your spec_helper.rb and it will initialize itself if there's no spork process running
精彩评论