News for hackers. Stuff that matters.
Re:Stop Using Mocks by qaexl on Wednesday March 23, 2011 @01:02PM (#2360226)
If you're going with Fat Models and Thin Controllers, then the controller shouldn't be doing anything more than something standardized. You can probably reduce that code down to using inherited_resources (though with Rails 3, it's just as easy to roll your own). I don't know about HTML endpoints, but I test all my JSON and XML endpoints by sending fake Rack responses. They tend to be highly orthogonal and easily metaprogrammed.

There are no comments on this comment yet.