aboutsummaryrefslogtreecommitdiff
path: root/spec/unit/controller
AgeCommit message (Collapse)AuthorFilesLines
2013-01-06Improve test structureStormwind3-71/+0
Created folder spec/unit/zero and moved all unittest into this folder.
2012-12-18reuse render for actual renderingGibheer1-0/+19
The splitting of rendering and processing is good, but on the other side it makes some double steps or even introduce workarounds. That is why I made the method #render just a call to the renderer. This should help much more than the strict seperation. The method will only return the resulting string and not add it to the body of the response. That still has to be taken care of by the user.
2012-12-17initialize the responseGibheer1-0/+14
2012-12-13added options to controllerGibheer1-2/+2
This avoids hardcoding the options into the controller and therefore should it make possible to use Rack::Request or Sinatra apps as requests. (That sounds so weird.)
2012-12-12replaced .create with .new on Zero::RequestGibheer1-1/+1
2012-12-10define the renderer at initializationGibheer1-1/+6
2012-11-30specs for the renderer accessGibheer1-0/+11
2012-11-29don't overwrite the requestGibheer1-0/+8
2012-11-20added a basic spec for the controllerGibheer1-0/+14