I’m writing a sinatra app and testing it with rspec and rack/test (as described on sinatrarb.com).
It’s been great so far, until I moved some rather procedural code from my domain objects to
sinatra helpers.
Since then, I’ve been trying to figure out how to test these in isolation ?
maybe this can help you some way http://japhr.blogspot.com/2009/03/sinatra-innards-deletgator.html