You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@buildr.apache.org by la...@apache.org on 2008/08/24 19:26:01 UTC

svn commit: r688533 - /incubator/buildr/trunk/spec/application_spec.rb

Author: lacton
Date: Sun Aug 24 10:26:00 2008
New Revision: 688533

URL: http://svn.apache.org/viewvc?rev=688533&view=rev
Log:
'rake spec | grep' would fail because  is not a tty

Modified:
    incubator/buildr/trunk/spec/application_spec.rb

Modified: incubator/buildr/trunk/spec/application_spec.rb
URL: http://svn.apache.org/viewvc/incubator/buildr/trunk/spec/application_spec.rb?rev=688533&r1=688532&r2=688533&view=diff
==============================================================================
--- incubator/buildr/trunk/spec/application_spec.rb (original)
+++ incubator/buildr/trunk/spec/application_spec.rb Sun Aug 24 10:26:00 2008
@@ -44,7 +44,7 @@
       Buildr::Application.new.environment.should eql('test')
       ENV['BUILDR_ENV'].should eql('test')
     end
-
+    
     after do
       ENV['BUILDR_ENV'] = nil
     end
@@ -94,6 +94,7 @@
         spec.name = 'foo'
         spec.version = '1.2'
       end
+      $stdout.stub!(:isatty).and_return(true)
     end
 
     it 'should do nothing if no gems specified' do