# Testing for a controller that does not exist

**URL:** <https://www.ruby-forum.com/t/testing-for-a-controller-that-does-not-exist/143469>\
**Category:** Rails\
**Created:** [July 18, 2008, 11:10pm UTC](https://www.ruby-forum.com/t/testing-for-a-controller-that-does-not-exist/143469 "2008-07-18T23:10:44Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dorelal](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/3da27b/32.png) [@dorelal](https://www.ruby-forum.com/u/dorelal)\
**Post date:** [July 18, 2008, 11:10pm UTC](https://www.ruby-forum.com/t/testing-for-a-controller-that-does-not-exist/143469/1 "2008-07-18T23:10:44Z")

</div>

class StateControllerTest \< ActionController::TestCase

get :index

end

get :index works. However because of recent change in the controller  
name I want /mystate/index to go to the same place. I put in a  
FourOhFour cathcall controller which redirect user from /mystate/index  
to /state/index. It works.

But how do I get that /mystate/index goes to /state/index . The problem  
is that I do not have a controller named MystateController anymore.

Any suggestions.
