4 ms·
I have written a library called gently. This library lets you define a series of expected function calls spawning multiple objects (since overall order is impor
by felixge 16y ago
I have written a library called gently. This library lets you define a series of expected function calls spawning multiple objects (since overall order is important to us).
Whenever you define such an expected call, gently returns a closure that you can use to inject this expectation in the right place.
From my understanding this is hybrid between Mocking (where you have an object with an expected call / state sequence), and Stubbing (where you have various pre-recorded answers to function calls).
But generally I found the semantics of the various TDD methodologies very difficult to translate into actual code. That's why I'm using as little abstraction as possible.