Created
February 3, 2010 20:05
-
-
Save expectedbehavior/293965 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
# -*- coding: utf-8 -*- | |
class Test::Unit::UI::Console::RedGreenTestRunner < Test::Unit::UI::Console::TestRunner | |
def output_single(something, level=NORMAL) | |
return unless (output?(level)) | |
something = case something | |
when '.' then Color.green('.') | |
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 | |
end |
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
config.gem "redgreen" |
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 'test/unit/ui/console/testrunner' | |
require File.join("#{RAILS_ROOT}/lib", 'patches/redgreen') | |
require File.join("#{RAILS_ROOT}/lib", 'patches/testrunner') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment