title: How do I test a Ruby command-line program with Cucumber that has a massive amount of output?
body: <p>I'm building a Ruby command-line program, and using Cucumber and Aruba to test it. Aruba includes some really handy matchers, so I can test output with a few lines in the <code>.feature</code> file:</p>
  
  <pre><code>When I run `myprogram`
  Then it should pass with:
    """
    my program output
    """
  </code></pre>
  
  <p>The problem is that my program may contain dozens or even hundreds of lines of output; putting all that in the <code>.feature</code> file will make it harder to read and navigate (and is kind of obnoxious). What's the recommended way to test the output in such a case?</p>