If there is one testing technique more misunderstood and mis-used than any other, it is stub and mock objects. Sometimes (to, say, an aging and slightly cynical Ruby consultant) it can seem like Ruby codebases break down into one of two camps:
The topics that follow will (hopefully) help you to find a middle path between these two extremes, guided by the experience of some of the inventors of mock- and stub-object techniques.
There was a problem reporting this post.
Please confirm you want to block this member.
You will no longer be able to:
Please allow a few minutes for this process to complete.