Assert_generates and catch-all routes


I have a catch all route.

map.connect ‘people/*args’, :controller => ‘people’, :action =>

I can test this one way, with assert_recognizes.

expected_options = { :controller => ‘people’, :action =>
‘default_action’, :args => [‘made_up’] }
assert_recognizes expected_options, ‘people/made_up’

I’m wondering why I cannot test the other way, using assert_generates?

options_for_url = { :controller => ‘people’ }
assert_generates ‘people/default_action’, options_for_url

The above fails with “ActionController::RoutingError: No url can be
generated for the hash”.

I assume I am missing something in my understanding of routing. If
anyone can enlighten me that’d be grand.