Workaround for spec_server "can't dup NilClass"

On recent versions of RSpec/RSpec rails, if you are using
Machinist/Factory_Girl or similar, you may get “can’t dup NilClass”
errors running specs through spec_server. (Not on the initial run, but
on all subsequent runs.)

The workaround is to manually re-load the factories/templates each spec
run e.g. by placing “load” statements within the Spec::Runner.configure
block in spec_helper.

I understand spec_server is deprecated but its replacement (spork) is
not windows-compatible. So if you’re stuck with spec_server, this is for
you.

(I’m running RSpec/RSpec Rails 1.2.7+ - YMMV)

HTHSomeoneElse
Dave