зеркало из https://github.com/github/ruby.git
* lib/minitest/unit.rb (MiniTest::Assertions#capture_io): adjust
indentation to shut up warning. [ruby-core:19993] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20288 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
d37f45cef9
Коммит
edcb875942
|
@ -1,3 +1,8 @@
|
|||
Thu Nov 20 07:27:36 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||
|
||||
* 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@ruby-lang.org>
|
||||
|
||||
* ext/syck/rubyext.c (rb_syck_mktime): return DateTime for a value
|
||||
|
|
|
@ -191,12 +191,12 @@ module MiniTest
|
|||
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
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче