search for: shops_controller_spec

Displaying 1 result from an estimated 1 matches for "shops_controller_spec".

2011 Jul 14
1
RoutingError with RSpec Controller test on Scoped Route
...ion works fine. However, RSpec throws: 1) ShopsController when responding to a GET#new should create a new instance of the shop class Failure/Error: get :new ActionController::RoutingError: No route matches {:controller=>"shops", :action=>"new"} # ./spec/controllers/shops_controller_spec.rb:9:in `block (4 levels) in <top (required)>'' When I remove the scope statements from the route, the tests work fine. Is there a way to "inform" RSpec of the route scopes? -- You received this message because you are subscribed to the Google Groups "Ruby on Rails:...