[rspec-users] Where is current_user?
Harry Bishop
lists at ruby-forum.com
Mon Oct 20 09:39:43 EDT 2008
> David Chelimsky wrote:
>>
>> I'd add a current_user method that returns @current_user, and then
>> stub *that* in the code examples:
Hi David,
I found that I can stub out is_showable?(@current_user, @motion) and the
test passes. I was trying to use the code logic to do this, but now see
that @current_user won't be seen by the show action as it is set in the
actual code.
Thanks for your help.
HR
--
Posted via http://www.ruby-forum.com/.
More information about the rspec-users
mailing list