Testing
The usage is straightforward: the MockEngine class has a method in , that receives a block/callback that will handle the request. This callback receives an as a parameter, and must return a . There are many helper methods to construct the response.
A sample illustrating this: