buildr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vbo...@apache.org
Subject svn commit: r706702 - /incubator/buildr/trunk/spec/addon/drb_spec.rb
Date Tue, 21 Oct 2008 18:10:45 GMT
Author: vborja
Date: Tue Oct 21 11:10:45 2008
New Revision: 706702

URL: http://svn.apache.org/viewvc?rev=706702&view=rev
Log:
restore stdio after each drb spec

Modified:
    incubator/buildr/trunk/spec/addon/drb_spec.rb

Modified: incubator/buildr/trunk/spec/addon/drb_spec.rb
URL: http://svn.apache.org/viewvc/incubator/buildr/trunk/spec/addon/drb_spec.rb?rev=706702&r1=706701&r2=706702&view=diff
==============================================================================
--- incubator/buildr/trunk/spec/addon/drb_spec.rb (original)
+++ incubator/buildr/trunk/spec/addon/drb_spec.rb Tue Oct 21 11:10:45 2008
@@ -83,14 +83,19 @@
   include DRbHelper
   
   before(:each) do
+    @in, @out, @err = $stdin, $stdout, $stderr
     @cfg = {
       :dir => Dir.pwd, :argv => [],
-      :in => $stdin, :out => $stdout, :err => $stderr
+      :in => @in, :out => @out, :err => @err
     }
     @drb = Buildr::DRbApplication.clone
     @drb.send :setup
     @app = Buildr.application
   end
+
+  after(:each) do
+    $stdin, $stdout, $stderr = @in, @out, @err
+  end
   
   describe '.run' do
     it 'starts server if no server is running' do



Mime
View raw message