Ruby stubbing techniques

Jay Fields is writing a great series of articles about stubbing in Ruby. Many of the techniques are similar to ones we developed at Reevoo and led to the creation of Mocha, although I have to admit we didn’t take the use of OpenStruct as far as he did.

A while ago I did attempt to write a series of articles explaining the evolution of Mocha, but I got it a bit tangled up with how it could be used to avoid the use of fixtures – so it petered out. Jay’s articles are much more useful.