Redgreen and autospec

26 May 2010

I use the redgreen gem for autotest to highlight errors in another color. Sadly that broke my autospec:

invalid option: --autospec
Test::Unit automatic runner.
Usage: -e [options] [-- untouched arguments]

If you want to use redgreen and have a working autospec, you should change your .autotest file to this:

require 'redgreen/autotest' unless ENV['RSPEC']