# Assert\_redirected\_to partial assertion does not work?

**URL:** <https://www.ruby-forum.com/t/assert-redirected-to-partial-assertion-does-not-work/193377>\
**Category:** Rails\
**Created:** [August 16, 2010, 8:54pm UTC](https://www.ruby-forum.com/t/assert-redirected-to-partial-assertion-does-not-work/193377 "2010-08-16T20:54:06Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![fipa](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/9e8a1a/32.png) [@fipa](https://www.ruby-forum.com/u/fipa)\
**Post date:** [August 16, 2010, 8:54pm UTC](https://www.ruby-forum.com/t/assert-redirected-to-partial-assertion-does-not-work/193377/1 "2010-08-16T20:54:06Z")

</div>

Hi,

From the docs I see:  
[http://api.rubyonrails.org/classes/ActionController/Assertions/ResponseAssertions.html](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?
