blowmage/minitest-rg — pull request #1 by telemachus (2013-05-11 02:50:36+00:00)
Title: Ugly, but effective

I can't think of a more effective test than this:

+ Run `rake test` # => see pretty colors
+ Run `rake test | less` # => no colors in less
+ Run `rake test > out` # => no garbage \e[32m output in the file

If you're going to update soon for minitest 5.0.0, this may be moot but it gives you an idea of what I'd like to do.