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:in `generate_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:in `extra_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:in `process'' 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:in `test_create'' Anyone knows how to fix that? Thanks, Matt -- Posted via http://www.ruby-forum.com/.
Hareesh Golla
2006-Jul-27 12:03 UTC
[Rails] Re: All functional tests fail with RoutingError
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:in `generate_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:in `extra_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:in `process'' > 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:in `test_create'' > > Anyone knows how to fix that? > > Thanks, > Matt-- Posted via http://www.ruby-forum.com/.