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" <[EMAIL PROTECTED]> wrote: > On 6/26/07, Anonymous <[EMAIL PROTECTED]> 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 >> [email protected] >> http://rubyforge.org/mailman/listinfo/rspec-users >> > _______________________________________________ > rspec-users mailing list > [email protected] > http://rubyforge.org/mailman/listinfo/rspec-users _______________________________________________ rspec-users mailing list [email protected] http://rubyforge.org/mailman/listinfo/rspec-users
