search for: colour_code

Displaying 1 result from an estimated 1 matches for "colour_code".

Did you mean: color_mode
2006 Dec 21
1
heres how to get color output in rspec_autotest with rspec 0.7.5
...begin ; require ''Win32/Console/ANSI'' if @colour && PLATFORM =~ /win32/ ; rescue LoadError ; raise "You must gem install win32console to use colour on Windows" ; end end @@ -96,7 +97,7 @@ module Spec end def colour(text, colour_code) - return text unless @colour && @output == Kernel + return text unless @force_colour || (@colour && @output == Kernel) "#{colour_code}#{text}\e[0m" end diff -upr rspec-0.7.5/lib/spec/runner/option_parser.rb rspec-0.7.5_with_col...