Assert_routing help

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

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.

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