Displaying 1 result from an estimated 1 matches for "admin_portal".
2006 Jan 07
2
Functional tests with routes
...nerates and running into a
bit of trouble.
The controller that I am testing is in a module -
class Admin::AdminPortalController
def index
end
end
I want the user to jump to the AdminPortal/index action when they use
http://myApp/admin, so I''ve put the following in routes.rb
map.admin_portal ''admin'', :controller => "admin/admin_portal", :action
=>''index''
Simple, works fine.
I am putting the test in the generated test file for the controller. The
test is simply
opts = { :controller => ''admin'' }
assert_...