How to capture multiple lines of console output in Ruby with RSpec