1. 1

One of the most difficult tasks I met during Hanami development is to write integration tests for the Command Line Interface (CLI). This challenge required a deep knowledge of the Ruby toolchain.

In this article I explain how to programmatically interact with a child process (an IRB console) from Ruby.

  1.