lib/ae.rb in ae-1.7.1 vs lib/ae.rb in ae-1.7.2

- old
+ new

@@ -22,9 +22,27 @@ verbose, $VERBOSE = $VERBOSE, nil Object.const_set(:Assertion, exception_class) $VERBOSE = verbose end + @ansi = true + + # + def self.ansi? + @ansi + end + + # To turn of ANSI colorized error messages off, set + # ansi to +false+ in your test helper. + # + # Example + # + # AE.ansi = false + # + def self.ansi=(boolean) + @ansi = boolean + end + end require 'ae/version' require 'ae/assert' require 'ae/expect'