Actions
Bug #3856
closedtest_capture_io (test/minitest/test_mini_test.rb:837)が通らない
Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 1.9.3dev (2010-09-22 trunk 29314) [x86_64-darwin10.4.0]
Backport:
Description
=begin
sora_hです。
test/minitest/test_minitest.rb:837 / test_capture_ioが通りません。
パッチは以下です。 #3852と同じ方法で修正がききます。
diff --git test/minitest/test_mini_test.rb test/minitest/test_mini_test.rb
index 1cbc829..3a6b897 100644
--- test/minitest/test_mini_test.rb
+++ test/minitest/test_mini_test.rb
@@ -828,10 +828,12 @@ FILE:LINE:in `test_assert_raises_triggered_subclass'
def test_capture_io
@assertion_count = 0
-
orig_verbose, $VERBOSE = $VERBOSE, false
out, err = capture_io do
puts 'hi'
warn 'bye!'
end -
$VERBOSE = orig_verbose
assert_equal "hi\n", out
assert_equal "bye!\n", err
=end
Actions
Like0
Like0Like0Like0