Capturing multi-line console output in Ruby's RSpec testing interface
How do you capture multiple lines of console output in Ruby? Here is one way to do it. This example comes from writing a test for multiple lines of output from a command-line tic-tac-toe game, where the board should print into the console on 5 differ...
Oct 2, 20223 min read714
