[rspec-users] spec for authenticated user

David Chelimsky dchelimsky at gmail.com
Wed May 27 08:25:08 EDT 2009


On Wed, May 27, 2009 at 7:08 AM, Diwakar, ANGLER - EIT
<diwakar at angleritech.com> wrote:
>   before_filter :requires_user,
>                :except => :create
>
>  def show
>   #-------
>
>     # the currently authenticated user
>     @user = user
>
>   end
>
> How shall we check the currently authenticated user using rspec?

What's in requires_user?


More information about the rspec-users mailing list