Displaying 1 result from an estimated 1 matches for "profile_routing_spec".
2008 Jun 25
0
Rspec routing_spec failing on nested singular resource
This should be easy to solve; I''m trying to get an Rspec routing_spec
working with a singular nested resource;
map.resources :users do |user|
user.resource :profile
end
All the tests in the profile_routing_spec seem to be failing because
they can''t match the routes, for example;
# The spec
describe ProfileController do
describe "route generation" do
it "should map { :controller => ''profile'', :action => ''show'',
:user_id => '...