I have a controller like:
namespace :admin do resources :posts end
The problem is that I do not know where Admin::PostsControllerTest is going.
I was expecting something like the following work:
# test/functional/admin/posts_controller_test.rb module Admin class PostsControllerTest < ActionController::TestCase end end
But if I do this, I get the following error when running rake test:functionals :
RuntimeError: @controller is nil: make sure you set it in your test setup method.
source share