[rspec-users] Common setup code and naming specifications

Bryan Liles bryan at osesm.com
Thu Jan 4 19:16:18 EST 2007


On Jan 4, 2007, at 6:34 PM, Bob Cotton wrote:

>
> What about:
>
> module LoggedIn
>   def setup
>     session[:logged_in] = true
>   end
> end
>
> context "..." do
>   include LoggedIn
> end
>

With this method, don't you lose access to setup?  Seems like a lot  
to lose just to gain a a login mixin.


More information about the rspec-users mailing list