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

e$B%A%1%C%He(B #3856 e$B$,99?7$5$l$^$7$?!#e(B (by Shota F.)

e$B;XE&$r$&$1$Fe(Bensuree$B$GLa$9$h$&$KJQ99$7$^$7$?!#e(B
e$BDI5-$9$k$H!"e(B$VERBOSEe$B$,e(Bnile$B$N$H$-$K$3$l$OF0:n$7$J$/$J$k$N$G$=$l$NBP:v$r$7$F$$$^$9e(B
(e$B$?$H$($P!"e(Bteste$B$,68$C$F$$$Fe(B$VERBOSEe$B$re(Bnile$B$K$7$?$^$^$K$J$C$F$$$kEy!#e(B)

diff --git test/minitest/test_mini_test.rb
test/minitest/test_mini_test.rb
index 1cbc829bed0521 100644
test/minitest/test_mini_test.rb
+++ test/minitest/test_mini_test.rb
@@ -828,6 +828,8 @@ 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!
    @@ -835,6 +837,8 @@ FILE:LINE:in `test_assert_raises_triggered_subclass

    assert_equal hi\n, out
    assert_equal bye!\n, err

  • ensure

  • $VERBOSE = orig_verbose
    end

def test_class_asserts_match_refutes


http://redmine.ruby-lang.org/issues/show/3856

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