[rspec-users] proxy associantion on controllers

Newman Huang lists at ruby-forum.com
Fri Dec 5 08:58:36 EST 2008


try:

#@user = User.find(params[:user_id])
User.stub(:find).with(xx).and_return(@user)
-- 
Posted via http://www.ruby-forum.com/.


More information about the rspec-users mailing list