Linux heracles.o2switch.net 4.18.0-553.62.1.lve.el8.x86_64 #1 SMP Mon Jul 21 17:50:35 UTC 2025 x86_64
/
opt
/
alt
/
ruby21
/
share
/
ri
/
2.1.0
/
system
/
MiniTest
/
Assertions
/
//opt/alt/ruby21/share/ri/2.1.0/system/MiniTest/Assertions/capture_subprocess_io-i.ri
U:RDoc::AnyMethod[iI"capture_subprocess_io:EFI"/MiniTest::Assertions#capture_subprocess_io;TF:publico:RDoc::Markup::Document:@parts[ o:RDoc::Markup::Paragraph; [I"BCaptures $stdout and $stderr into strings, using Tempfile to ;TI"3ensure that subprocess IO is captured as well.;To:RDoc::Markup::BlankLine o:RDoc::Markup::Verbatim; [I")out, err = capture_subprocess_io do ;TI" system "echo Some info" ;TI". system "echo You did a bad thing 1>&2" ;TI" end ;TI" ;TI" assert_match %r%info%, out ;TI"assert_match %r%bad%, err ;T:@format0o; ; [I"GNOTE: This method is approximately 10x slower than #capture_io so ;TI"Bonly use it when you need to test the output of a subprocess.;T: @fileI"lib/minitest/unit.rb;T:0@omit_headings_from_table_of_contents_below00I"