Add support for specifying max magazine slave count via SPORK_SLAVES_COUNT environment variable.
Add support for specifying max slave count via SPORK_SLAVES_COUNT env…
…ironment variable using magazine run strategy.
I implemented a version of this feature in a situation where I was using JRUBY which forced the magazine strategy and our team loads some test data into the test database as a part of loading spec_helper.rb.
Having multiple spork slaves caused problems because both slaves tried to load the test data into the test database and caused conflicts. We needed to force it to a single slave to make it work.
This should be an environment variable, or command line switch or something.
Closing old pull requests. Please send new ones if this is still an issue.