class Test::Unit::UI::Console::RedGreenTestRunner

Public Class Methods

new(suite, output_level=NORMAL, io=$stdout) click to toggle source
Calls superclass method
# File lib/redgreen.rb, line 16
def initialize(suite, output_level=NORMAL, io=$stdout)
  super
end

Public Instance Methods

output_single(something, level=NORMAL) click to toggle source
# File lib/redgreen.rb, line 20
def output_single(something, level=NORMAL)
  return unless (output?(level))
  something = case something
              when '.' then Color.green('.')
              when 'F' then Color.red("F")
              when 'E' then Color.yellow("E")
              else something
              end
  @io.write(something) 
  @io.flush
end