Skip to content

Commit

Permalink
Use magazine strategy if forking not available.
Browse files Browse the repository at this point in the history
TODO: add check for JRuby. It will NOT work with magazine.
  • Loading branch information
Milhouse committed Feb 18, 2010
1 parent 58d7adc commit b131596
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/spork/run_strategy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,11 @@ def abort

protected
def self.factory(test_framework)
Spork::RunStrategy::Forking.new(test_framework)
if Spork::RunStrategy::Forking.available?
Spork::RunStrategy::Forking.new(test_framework)
else
Spork::RunStrategy::Magazine.new(test_framework)
end
end

def self.inherited(subclass)
Expand Down

0 comments on commit b131596

Please sign in to comment.