This is a presentation which was given at KW Ruby on April 21st, 2015.
The presentation PDF can be found here (factories.pdf), or on SpeakerDeck. It was written in Markdown and presented using Deckset. The original Markdown file can be found in factories.md.
The refactorings that occur in the presentation can all be found as pull requests. There are four of them:
- #1 - Replace factories with stubs
- #2 - Implement projection method on Customer
- #3 - Allow rates to multiply themselves by other values
- #4 - Create a MinMax class
Questions or comments can be opened as GitHub issues or you can tweet at @eroberts. I will do my best to respond to any comments as soon as possible.
These are a few of the resources which have influenced my thoughts about testing: