[rspec-users] Acts as Authenticated

aslak hellesoy aslak.hellesoy at gmail.com
Sat Jun 30 11:09:24 EDT 2007


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
>


More information about the rspec-users mailing list