> -Original Message-
> From: rspec-users-boun...@rubyforge.org
> [mailto:rspec-users-boun...@rubyforge.org] On Behalf Of David Chelimsky
> Sent: Wednesday, May 27, 2009 5:55 PM
> To: rspec-users
> Subject: Re: [rspec-users] spec for authenticated user
>> befo
ated user is required.' )
end
end
end
-Original Message-
From: rspec-users-boun...@rubyforge.org
[mailto:rspec-users-boun...@rubyforge.org] On Behalf Of David Chelimsky
Sent: Wednesday, May 27, 2009 5:55 PM
To: rspec-users
Subject: Re: [rspec-users] spec for authentica
On Wed, May 27, 2009 at 7:08 AM, Diwakar, ANGLER - EIT
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
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?
___
rspec-users mailing list