[rspec-users] routing error for a name-spaced nested controller

Mike Mazur mmazur at gmail.com
Mon Feb 7 19:02:48 EST 2011


Hi,

On Sun, Feb 6, 2011 at 05:29, slavix <mikerin.slava at gmail.com> wrote:
> Struggling with nested routing and rspec...
> When I run spec/controllers/admin/website_users_controller_spec.rb
>
> describe Admin::WebsiteUsersController do
> ...
> get :index, :website => @website

Does that need to be:

  get :index, :website => @website.to_param

HTH,
Mike


More information about the rspec-users mailing list