module Minitest

def self.plugin_rg_init options # :nodoc:

:nodoc:
def self.plugin_rg_init options # :nodoc:
  if RG.rg?
    io = RG.new options[:io]
    reporter.reporters.grep(Minitest::Reporter).each do |rep|
      rep.io = io
    end
  end
end