On Tue, Oct 9, 2012 at 8:56 AM, enrico stano <enrico...@gmail.com> wrote:
> Hi Ben,
>
> you could find more info browsing this Gist
> https://gist.github.com/3848429#file_user_controller_spec.rb
>
> I've added it to my StackOverflow question too.
>
> Thank you for your time!

It's likely that cancan is calling User.find because of
load_and_authorize_resource

That's likely why you see it being called twice when the stub is removed.

-- 
Andy Lindeman
http://www.andylindeman.com/
_______________________________________________
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users

Reply via email to