[rspec-users] getting ActionController::RoutingError when I test namespaced controllers

Lille lille.penguini at gmail.com
Wed Feb 1 20:26:33 EST 2012


Hey folks,

Using 2.6, I have functional tests arranged in my spec/controllers
directory according to their namespace in my Rails 3 app/controllers
directory, e.g.,

api/some_controller_spec.rb

   describe Api::SomeController, ...

Well, when I run rspec at the directory level, e.g., rspec spec/
controllers/api the test behavior is normal. When I try to run all
tests from the spec/controllers root, however, I get tons of failures
due to ActionController::RoutingError.

What is the fix?

Thanks,

Lille


More information about the rspec-users mailing list