An occasional alternative to mocks?
An occasional alternative to mocks?
Submitted by Brian Marick on Tue, 19/02/2008 - 21:43.I’m test-driving some Rails helpers. A helper is a method that runs in a context full of methods magically provided by Rails. Some of those methods are of the type that’s a classic motivation for mocks or stubs: if you don’t want them to blow up, you have to do some annoying behind-the-scenes setup. (And [...]
