I want to use this at my test file: @controller=Admin::PostsController
but it says: NameError: uninitialized constant Admin::PostsController /media/mydata/projects/proj/test/proj_test.rb:23:in `test_activ' I suppose it has failed to import PostsController. How can I do that? Note: from rails console I can access: Admin::PostsController Also asked at #stackoverflow: http://stackoverflow.com/questions/32949279/how-can-i-import-active-admin-controllers-to-my-active-support-test -- Md. Sadaf Noor (@sadaf2605 <https://twitter.com/sadaf2605>) www.sadafnoor.com -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscr...@googlegroups.com. To post to this group, send email to rubyonrails-talk@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAAJ2eVompVc%3DfbL_PCOd4ZraRxOYHA%3DmyiQ3mJSs-_7bzOwWRg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.