Created
February 25, 2012 23:35
-
-
Save calavera/1911679 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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