All functional tests fail with RoutingError

All,

I’m using InstantRails 1.0 on Windows XP and all my functional
(controller) tests fail with ActionController::RoutingError, although
the actions work OK through a web server/browser. Here’s an example of
an error:

  1. Error:
    test_create(AdminControllerTest):
    ActionController::RoutingError: No url can be generated for the hash
    {:controlle
    r=>“admin”, :action=>“create”}
    generated_code/routing/generation.rb:92:in generate_default_path' c:/Install/InstantRails-1.0/ruby/lib/ruby/gems/1.8/gems/actionpack-1.11.2/li b/action_controller/routing.rb:419:ingenerate_path’
    c:/Install/InstantRails-1.0/ruby/lib/ruby/gems/1.8/gems/actionpack-1.11.2/li
    b/action_controller/routing.rb:415:in generate' c:/Install/InstantRails-1.0/ruby/lib/ruby/gems/1.8/gems/actionpack-1.11.2/li b/action_controller/routing.rb:602:inextra_keys’
    c:/Install/InstantRails-1.0/ruby/lib/ruby/gems/1.8/gems/actionpack-1.11.2/li
    b/action_controller/test_process.rb:86:in assign_parameters' c:/Install/InstantRails-1.0/ruby/lib/ruby/gems/1.8/gems/actionpack-1.11.2/li b/action_controller/test_process.rb:295:inprocess’
    c:/Install/InstantRails-1.0/ruby/lib/ruby/gems/1.8/gems/actionpack-1.11.2/li
    b/action_controller/test_process.rb:307:in post' test/functional/admin_controller_test.rb:53:intest_create’

Anyone knows how to fix that?

Thanks,
Matt

Hi,

will u please give me suggestions how to do functional test. any good
reference.

Regards
Hareesh

Matt wrote:

All,

I’m using InstantRails 1.0 on Windows XP and all my functional
(controller) tests fail with ActionController::RoutingError, although
the actions work OK through a web server/browser. Here’s an example of
an error:

  1. Error:
    test_create(AdminControllerTest):
    ActionController::RoutingError: No url can be generated for the hash
    {:controlle
    r=>“admin”, :action=>“create”}
    generated_code/routing/generation.rb:92:in generate_default_path' c:/Install/InstantRails-1.0/ruby/lib/ruby/gems/1.8/gems/actionpack-1.11.2/li b/action_controller/routing.rb:419:ingenerate_path’
    c:/Install/InstantRails-1.0/ruby/lib/ruby/gems/1.8/gems/actionpack-1.11.2/li
    b/action_controller/routing.rb:415:in generate' c:/Install/InstantRails-1.0/ruby/lib/ruby/gems/1.8/gems/actionpack-1.11.2/li b/action_controller/routing.rb:602:inextra_keys’
    c:/Install/InstantRails-1.0/ruby/lib/ruby/gems/1.8/gems/actionpack-1.11.2/li
    b/action_controller/test_process.rb:86:in assign_parameters' c:/Install/InstantRails-1.0/ruby/lib/ruby/gems/1.8/gems/actionpack-1.11.2/li b/action_controller/test_process.rb:295:inprocess’
    c:/Install/InstantRails-1.0/ruby/lib/ruby/gems/1.8/gems/actionpack-1.11.2/li
    b/action_controller/test_process.rb:307:in post' test/functional/admin_controller_test.rb:53:intest_create’

Anyone knows how to fix that?

Thanks,
Matt

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