[rspec-users] Could anyone please help with rspec/nested resource behavior checking?
Jonathan Linowes
jonathan at parkerhill.com
Wed May 30 20:50:17 EDT 2007
Don't you need to stub the User model :find too? (needed in your
private get_user call)
private
def get_user
@user = User.find(params[:user_id])
@post = @user.posts.find(params[:id]) if params[:id]
end
On May 30, 2007, at 8:03 PM, Fischer, Daniel wrote:
> My problem has been listed here:
> http://railsforum.com/viewtopic.php?pid=25439#p25439
>
> Don't think it would be required to completely re-type it here :)
>
> Thanks!
>
> --
> -Daniel Fischer
>
> http://danielfischer.com - Geek Blog
> http://abigfisch.com - Portfolio
> http://writersbeat.com - Writing Community
> _______________________________________________
> rspec-users mailing list
> rspec-users at rubyforge.org
> http://rubyforge.org/mailman/listinfo/rspec-users
More information about the rspec-users
mailing list