# Assert\_routing help

**URL:** <https://www.ruby-forum.com/t/assert-routing-help/122082>\
**Category:** Rails\
**Created:** [December 4, 2007, 2:27pm UTC](https://www.ruby-forum.com/t/assert-routing-help/122082 "2007-12-04T14:27:47Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![gabru](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/c0e974/32.png) [@gabru](https://www.ruby-forum.com/u/gabru)\
**Post date:** [December 4, 2007, 2:27pm UTC](https://www.ruby-forum.com/t/assert-routing-help/122082/1 "2007-12-04T14:27:47Z")

</div>

i want to test my routes and really struggle with it …

i have the following roout defined:

map.home ‘’, :controller =\> ‘Home’

… which allows me to call [http://www.host.com](http://www.host.com) and be redirected to the  
home controllers’ index action. my test looks the following now:

assert\_routing(‘’, :controller =\> ‘home’, :action =\> ‘index’)

and it fails with:

Test::Unit::AssertionFailedError: The recognized options  
\<{“action”=\>“index”, “controller”=\>“Home”}\> did not match  
\<{“action”=\>“index”, “controller”=\>“home”}\>, difference:  
\<{“controller”=\>“home”}\>

i am stuck, thanks for your time

---

<div class="post-metadata">

**Author:** ![gabru](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/c0e974/32.png) [@gabru](https://www.ruby-forum.com/u/gabru)\
**Post date:** [December 4, 2007, 2:30pm UTC](https://www.ruby-forum.com/t/assert-routing-help/122082/2 "2007-12-04T14:30:46Z")

</div>

oh, i just figured out why …  
the whole thing is case sensitive. The defined route had ‘Home’ and the  
test ‘home’

sorry for that mistake.
