Displaying 1 result from an estimated 1 matches for "tenants_controller_spec".
2007 Mar 24
1
RSpec and namespaced controllers
I''m running into a problem with RSpec/Rails and namespaced controllers.
I''ve got a controller called ''TenantsController'' in app/controllers
and another called ''Admin::TenantsController'' in app/controllers/admin
In spec/controllers/, I have a tenants_controller_spec.rb. In
spec/controllers/admin/ I have another tenants_controller_spec.rb.
Both specs run correctly when I run them individually from ruby (ie ruby
spec/controllers/admin/tenants_controller.rb), but the namespaced
tenants_controller.rb (inside /admin) fails when I run the tests from rake.
I think t...