You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@buildr.apache.org by do...@apache.org on 2010/11/04 10:12:03 UTC
svn commit: r1030862 - /buildr/trunk/rakelib/rspec.rake
Author: donaldp
Date: Thu Nov 4 09:12:03 2010
New Revision: 1030862
URL: http://svn.apache.org/viewvc?rev=1030862&view=rev
Log:
BUILDR-530 - Disable rspec colored output on dos/win32 consoles
Modified:
buildr/trunk/rakelib/rspec.rake
Modified: buildr/trunk/rakelib/rspec.rake
URL: http://svn.apache.org/viewvc/buildr/trunk/rakelib/rspec.rake?rev=1030862&r1=1030861&r2=1030862&view=diff
==============================================================================
--- buildr/trunk/rakelib/rspec.rake (original)
+++ buildr/trunk/rakelib/rspec.rake Thu Nov 4 09:12:03 2010
@@ -19,7 +19,7 @@ begin
def default_spec_opts
default = %w{--format failing_examples:failed --format html:_reports/specs.html --backtrace}
- default << '--colour' if $stdout.isatty
+ default << '--colour' if $stdout.isatty && !(Config::CONFIG['host_os'] =~ /mswin|win32|dos/i)
default
end