Skip to content

Instantly share code, notes, and snippets.

@calavera
Created February 25, 2012 23:35
Show Gist options
  • Save calavera/1911679 to your computer and use it in GitHub Desktop.
Save calavera/1911679 to your computer and use it in GitHub Desktop.
require 'minitest/unit'
require 'celluloid'
module MiniTest
module Celluloid
class Runner < MiniTest::Unit
def _run_suites(suites, type)
futures = suites.map do |suite|
::Celluloid::Future.new { _run_suite suite, type }
end
futures.map {|f| f.value}
end
end
end
end
MiniTest::Unit.runner = MiniTest::Celluloid::Runner.new
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment