Functional test stopped working in RoR app

All,

Functional tests in one of my RoR apps stopped working. I broke
something and I have no idea what that is (for this particular app I’m
using InstantRails-1.0 on Windows XP Pro).

Basically, I get an error message similar to this one for every
controller test I run:

  1. Error:
    test_index_without_user(LoginControllerTest):
    ActionController::RoutingError: No url can be generated for the hash
    {:action=>"
    index", :controller=>“login”}
    generated_code/routing/generation.rb:67:in `generate_default_path’

c:/InstantRails-1.0/ruby/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/routing.rb:419:in
`generate_path’

c:/InstantRails-1.0/ruby/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/routing.rb:415:in
`generate’

c:/InstantRails-1.0/ruby/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/routing.rb:602:in
`extra_keys’

c:/InstantRails-1.0/ruby/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/test_process.rb:86:in
`assign_parameters’

c:/InstantRails-1.0/ruby/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/test_process.rb:295:in
`process’

c:/InstantRails-1.0/ruby/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/test_process.rb:307:in
get' test/functional/login_controller_test.rb:18:intest_index_without_user’

Here’s my routes.rb file:

map.connect ‘’, :controller => ‘store’, :lang => ‘pl_PL’
map.connect ‘:controller/service.wsdl’, :action => ‘wsdl’

map.connect ‘search’, :controller => ‘search’, :action => ‘search’,
:lang => ‘pl_PL’

map.connect ‘:controller/:action/:id’, :id => /\d+/, :lang => ‘pl_PL’

map.connect ‘:controller/:action/:context/:id’, :id => /\d+/, :lang =>
‘pl_PL’

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