Quick example of unit testing Ruby code that writes to the console: