Created
May 11, 2011 17:01
-
-
Save aanand/966868 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
if RUBY_VERSION < '1.9' | |
require 'redgreen' | |
else | |
require 'colored' | |
# A poor person's redgreen. | |
class ActiveSupport::TestCase | |
def run(*args, &block) | |
result = super(*args, &block) | |
case result | |
when '.' then result.green | |
when 'F' then result.red | |
when 'E' then result.yellow | |
else result | |
end | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment