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 2013/10/26 04:19:09 UTC

svn commit: r1535912 - /buildr/trunk/spec/core/console_spec.rb

Author: donaldp
Date: Sat Oct 26 02:19:09 2013
New Revision: 1535912

URL: http://svn.apache.org/r1535912
Log:
Add guard so that tests do not run under windows MRI

Modified:
    buildr/trunk/spec/core/console_spec.rb

Modified: buildr/trunk/spec/core/console_spec.rb
URL: http://svn.apache.org/viewvc/buildr/trunk/spec/core/console_spec.rb?rev=1535912&r1=1535911&r2=1535912&view=diff
==============================================================================
--- buildr/trunk/spec/core/console_spec.rb (original)
+++ buildr/trunk/spec/core/console_spec.rb Sat Oct 26 02:19:09 2013
@@ -21,7 +21,7 @@ describe Buildr::Console do
 
     it 'should return a value' do
       Buildr::Console.console_dimensions.should_not be_nil
-    end if $stdout.isatty && !ENV["TRAVIS"]
+    end if $stdout.isatty && !ENV["TRAVIS"] && (!Buildr::Util.win_os? || Buildr::Util.java_platform?)
   end
 
   describe 'color' do
@@ -42,7 +42,7 @@ describe Buildr::Console do
       it 'should emit blue code when asked' do
         Buildr::Console.color('message', :blue).should eql("\e[34mmessage\e[0m")
       end
-    end if $stdout.isatty
+    end if $stdout.isatty && (!Buildr::Util.win_os? || Buildr::Util.java_platform?)
 
     describe ' use_color is false' do
       before do