I've just recently discovered the wonderful world of routes. But I can't get my test to work when using them.
I have a ClientController which has an index action.
I want to access the action like this: http://mysite/admin/clients
For this, I have created a route: map.connect 'admin/clients', :controller => 'client', :action => 'index'
In my test I have:
[ ... some lines of assertions because you need to be logged in ... ]
When my test "hits" the admin/clients url the second time, my test fails with:
ActionController::UnknownAction: No action responded to /admin/clients
Why is that? And what is it about routes I have missed?