[rspec-users] (rspec2/rails3) spec'ing the details of a controller that is not purely *skinny* by design.

Matt Wynne matt at mattwynne.net
Mon Jul 12 12:02:20 EDT 2010

On 12 Jul 2010, at 06:43, Kevin wrote:

> Awesome discussion you've started here, very fun read for a new rspec
> follower.
> Just wanted to throw in that I've found setting a
> "cattr_accessor :current_user" in the user model to hold the current
> user to be very handy in terms of simplifying controllers.
> -Kevin

Probably not the best idea if you're planning on having the app run on more than one thread or process though :)


+44(0)7974 430184

More information about the rspec-users mailing list