[rspec-users] Dreading Controller Specs

Jonathan Linowes jonathan at parkerhill.com
Mon Oct 27 20:44:08 EDT 2008

On Oct 22, 2008, at 4:32 PM, Pat Maddox wrote:

> I think any app with a rich domain model benefits from a service layer
> that uses that model.  When building Rails apps, stuff is relatively
> simple and the controllers *are* the service layer.  That's how I  
> think
> of it, anyway.  Most of the time that's sufficient, but sometimes it
> gets complex enough that you want to split out some of the logic.

Reflecting on this thread, I'm realizing I put a lot of these kind of  
things into application.rb. Maybe I should think about how to make  
them into objects in a service layer, but presently they're doing  
fine where they are: split out from the controller, and independently  
testable. hmm...

More information about the rspec-users mailing list