[rspec-users] unexpected should_receive behaviour
enricostn at gmail.com
Tue Oct 9 13:46:56 UTC 2012
yes, it's CanCan fault! ;)
any chance to check something like that (pseudo code) ?
just to check exactly what's happening
2012/10/9 Andy Lindeman <alindeman at gmail.com>:
> On Tue, Oct 9, 2012 at 8:56 AM, enrico stano <enricostn at gmail.com> wrote:
>> Hi Ben,
>> you could find more info browsing this Gist
>> 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
> That's likely why you see it being called twice when the stub is removed.
> Andy Lindeman
> rspec-users mailing list
> rspec-users at rubyforge.org
· Enrico Stano
· twitter @enricostano
· skype ocirneonats
More information about the rspec-users