Assert_redirected_to partial assertion does not work?

Hi,

From the docs I see:
http://api.rubyonrails.org/classes/ActionController/Assertions/ResponseAssertions.html

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
triggered.

Any idea why I’m getting this behavior?

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs