[rspec-users] proxy associantion on controllers

David Chelimsky dchelimsky at gmail.com
Fri Dec 5 09:02:23 EST 2008


On Fri, Dec 5, 2008 at 7:58 AM, Newman Huang <lists at ruby-forum.com> wrote:
>
> try:
>
> #@user = User.find(params[:user_id])
> User.stub(:find).with(xx).and_return(@user)

Please quote enough of the email to which you are responding to
provide enough context so that those of us who read email on our
phones can understand.

Cheers,
David


More information about the rspec-users mailing list