Assert_redirected_to partial assertion does not work?


From the docs I see:

This match can be partial, such that assert_redirected_to(:controller =>
“weblog”) will also match the redirection of redirect_to(:controller =>
“weblog”, :action => “show”) and so on

But it my case it does not work. As assert_redirected_to(:controller =>
‘articles’) expects the index action of ArticlesController to be

Any idea why I’m getting this behavior?