You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@buildr.apache.org by vb...@apache.org on 2008/10/21 20:10:45 UTC

svn commit: r706702 - /incubator/buildr/trunk/spec/addon/drb_spec.rb

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