Mysterious test error

nikolaus heger
Wed, 18 May 2005 13:53:56 -0000

I am running the standard unit tests that come with salted login
generator (which are great, BTW) and i am getting a very strange error
message:

> 1) Error:
> test_signup(UserControllerTest):
> NoMethodError: undefined method `controller_path'' for
> UserController:Class
>
> /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.8.1/lib/
> action_controller/test_process.rb:249:in `process''
>     (eval):3:in `post''
>     ./test/functional/user_controller_test.rb:71:in
`do_test_signup''
>     ./test/functional/user_controller_test.rb:143:in `test_signup''

This error happens 9 times altogether, always the same stack trace.
Always happens on post.

I don''t understand this at all because controller_path is part of
ActionController::Base and UserController inherits from it
ApplicationController which inherits from ActionController::Base

I even tried a quick hack in inserting the source code from
ActionController in UserController - same error message.

Any ideas? I am lost...

Thanks!

	Nik

_______________________________________________
Rails mailing list
Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org