[rspec-users] controller code doesn't seem to be called within rspec test

Ben Lovell benjamin.lovell at gmail.com
Wed Oct 21 06:47:35 EDT 2009


2009/10/21 Alexander Seidl <lists at ruby-forum.com>

> Alexander Seidl wrote:
> > i call current_user in the index-method, but the test fails and says:
> > "#<User::CategoriesController:0xb7439484> expected :current_user with
> > (any args) once, but received it 0 times"
> >
> > Why?
>
>
Try putting line 7 before line 6.

Cheers,
Ben
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/rspec-users/attachments/20091021/5198d897/attachment.html>


More information about the rspec-users mailing list