> 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/. _______________________________________________ rspec-users mailing list [email protected] http://rubyforge.org/mailman/listinfo/rspec-users
