Add guard so that tests do not run under windows MRI git-svn-id: https://svn.apache.org/repos/asf/buildr/trunk@1535912 13f79535-47bb-0310-9956-ffa450edef68
Project: http://git-wip-us.apache.org/repos/asf/buildr/repo Commit: http://git-wip-us.apache.org/repos/asf/buildr/commit/0faefa70 Tree: http://git-wip-us.apache.org/repos/asf/buildr/tree/0faefa70 Diff: http://git-wip-us.apache.org/repos/asf/buildr/diff/0faefa70 Branch: refs/heads/master Commit: 0faefa70c983040535e4ce15d7ec7f4cabc9b817 Parents: 8650740 Author: Peter Donald <[email protected]> Authored: Sat Oct 26 02:19:09 2013 +0000 Committer: Peter Donald <[email protected]> Committed: Sat Oct 26 02:19:09 2013 +0000 ---------------------------------------------------------------------- spec/core/console_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/buildr/blob/0faefa70/spec/core/console_spec.rb ---------------------------------------------------------------------- diff --git a/spec/core/console_spec.rb b/spec/core/console_spec.rb index 30a3a22..760e50e 100644 --- a/spec/core/console_spec.rb +++ b/spec/core/console_spec.rb @@ -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
