[前][次][番号順一覧][スレッド一覧]

ruby-changes:8753

From: matz <ko1@a...>
Date: Thu, 20 Nov 2008 07:28:43 +0900 (JST)
Subject: [ruby-changes:8753] Ruby:r20288 (trunk): * lib/minitest/unit.rb (MiniTest::Assertions#capture_io): adjust

matz	2008-11-20 07:28:24 +0900 (Thu, 20 Nov 2008)

  New Revision: 20288

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=20288

  Log:
    * lib/minitest/unit.rb (MiniTest::Assertions#capture_io): adjust
      indentation to shut up warning.  [ruby-core:19993]

  Modified files:
    trunk/ChangeLog
    trunk/lib/minitest/unit.rb

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 20287)
+++ ChangeLog	(revision 20288)
@@ -1,3 +1,8 @@
+Thu Nov 20 07:27:36 2008  Yukihiro Matsumoto  <matz@r...>
+
+	* lib/minitest/unit.rb (MiniTest::Assertions#capture_io): adjust
+	  indentation to shut up warning.  [ruby-core:19993]
+
 Wed Nov 19 17:48:05 2008  Yukihiro Matsumoto  <matz@r...>
 
 	* ext/syck/rubyext.c (rb_syck_mktime): return DateTime for a value
Index: lib/minitest/unit.rb
===================================================================
--- lib/minitest/unit.rb	(revision 20287)
+++ lib/minitest/unit.rb	(revision 20288)
@@ -191,12 +191,12 @@
       assert caught, message(msg) { default }
     end
 
-   def capture_io
-     require 'stringio'
+    def capture_io
+      require 'stringio'
 
-     orig_stdout, orig_stderr         = $stdout, $stderr
-     captured_stdout, captured_stderr = StringIO.new, StringIO.new
-     $stdout, $stderr                 = captured_stdout, captured_stderr
+      orig_stdout, orig_stderr         = $stdout, $stderr
+      captured_stdout, captured_stderr = StringIO.new, StringIO.new
+      $stdout, $stderr                 = captured_stdout, captured_stderr
 
       yield
 

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]