[Ruby 1.9-Bug#3856][Open] test_capture_io (test/minitest/test_mini_test.rb:837)が通らない

Bug #3856: test_capture_io
(test/minitest/test_mini_test.rb:837)e$B$,DL$i$J$$e(B
http://redmine.ruby-lang.org/issues/show/3856

e$B5/I<<Te(B: Shota F.
e$B%9%F!<%?%9e(B: Open, e$BM%@hEYe(B: Normal
e$B%+%F%4%je(B: test
ruby -v: ruby 1.9.3dev (2010-09-22 trunk 29314) [x86_64-darwin10.4.0]

sora_he$B$G$9!#e(B

test/minitest/test_minitest.rb:837 / test_capture_ioe$B$,DL$j$^$;$s!#e(B

e$B%Q%C%A$O0J2<$G$9!#e(B #3852e$B$HF1$8J}[email protected]$,$-$-$^$9!#e(B

diff --git test/minitest/test_mini_test.rb
test/minitest/test_mini_test.rb
index 1cbc8293a6b897 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

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs