[rspec-users] Acts as Authenticated

court3nay court3nay at gmail.com
Sat Jun 30 23:36:22 EDT 2007


also see the caboose sample app for a complete integration of acts as  
auth with rspec.

--------
Courtenay
Sent from my iPhone

On Jun 30, 2007, at 8:09 AM, "aslak hellesoy"  
<aslak.hellesoy at gmail.com> wrote:

> On 6/26/07, Anonymous <nobody at mixmin.net> wrote:
>> I am using Acts as Authenticated and I need to call current_user in  
>> my views.
>> How do I mock current_user and other methods of Acts as  
>> Authenticated in my view specs?
>
> Hi Anon
>
> See "Mocking and stubbing helpers"
> http://rspec.rubyforge.org/documentation/rails/writing/views.html
>
> Aslak
>
>> _______________________________________________
>> rspec-users mailing list
>> rspec-users at rubyforge.org
>> http://rubyforge.org/mailman/listinfo/rspec-users
>>
> _______________________________________________
> rspec-users mailing list
> rspec-users at rubyforge.org
> http://rubyforge.org/mailman/listinfo/rspec-users


More information about the rspec-users mailing list