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
at this line I get:

ActionController::RoutingError Exception: No route matches
{:website=>#<Website id: 1, name: "Website1">, :controller=>"admin/
website_users"}

My routes.rb
..
namespace :admin do
    resources :websites do
      resources :users, :controller => 'website_users'
    end
end


rake routes
...
admin_website_users GET    /admin/websites/:website_id/
users(.:format)           {:action=>"index", :controller=>"admin/
website_users"}


thanks for help!
_______________________________________________
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users

Reply via email to