librelist archives

« back to archive

Using the mocks

Using the mocks

Felipe Sere
2014-07-22 @ 10:42
Hi everyone,

could someone give me a quick primer on how to use the mocks?
I want to TDD my app, so I am trying to use inheritance and use 
composition instead. 
My custom object should get an instance of App passed in, so they can call
app.stack do… etc etc.

I am not sure how to get an instance of an App, that responds to the 
regular DSL but does not draw…. I thought that that was the purpose of the

Its probably something simple I have just overlooked.