Write a simple library to enable testing with spies.
Here's a simple ruby app which interacts with a database. The app has a passing test suite, but the tests are difficult to follow because they ask questions about return values. Refactor the tests so that they observe collaborators that have side-effects (rather than examining those side-effects).