How can i import active admin controllers to my active support test?

15 views
Skip to first unread message

Sadaf Noor

unread,
Oct 5, 2015, 9:48:02 AM10/5/15
to rubyonra...@googlegroups.com

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)
 www.sadafnoor.com
Reply all
Reply to author
Forward
0 new messages