Use color in tests if the redgreen package is around

This commit is contained in:
Scott Taylor 2010-01-11 23:14:23 -05:00
parent 5a98b220d0
commit 2069d3d16d

View File

@ -1,3 +1,8 @@
$LOAD_PATH.unshift File.join(File.dirname(__FILE__), '..', 'lib') $LOAD_PATH.unshift File.join(File.dirname(__FILE__), '..', 'lib')
require 'fakefs/safe' require 'fakefs/safe'
require 'test/unit' require 'test/unit'
begin
require 'redgreen'
rescue LoadError
end