method
capture_io
v1_9_3_392 -
Show latest stable
- Class:
MiniTest::Assertions
capture_io()public
Captures $stdout and $stderr into strings:
out, err = capture_io do warn "You did a bad thing" end assert_match %r%bad%, err
capture_io()Captures $stdout and $stderr into strings:
out, err = capture_io do warn "You did a bad thing" end assert_match %r%bad%, err