Implementing and Testing the Singleton Pattern in Ruby Josh Cheek 20 Oct 2012 Coding Architecture Ruby What is a Singleton Object? The GoF identifies a singleton as a way to "ensure a class only has one instance, and provide a global...more.
Modules called, they want their integrity back Josh Cheek 03 Feb 2012 Coding Ruby TL; DR Rather than including modules and hooking into .included, write a method that adds the behaviour (even if the method just includes and extends)....more.
Three Reasons To Roll Your Own Mocks Josh Cheek 28 Nov 2011 Coding I've spent the last several months writing my own mock objects, but for the code I'm currently working on, we were mostly using RSpec's built...more.
Testing Code That's hard to test Josh Cheek 01 Oct 2011 Coding Testing So if you're like me, you're 5'10" and sport a ruggedly awesome beard. And if you're really like me, you swallowed the T/BDD pill years...more.