SaltedHashLoginGenerator functional tests fail on Rails 0.14

Hi,

The SaltedHashLoginGenerator controller tests fail on Rails 0.14.3,
Ruby 1.8.2 on Windows. Has anyone else experienced this? Is this
just an upgrade error from Rails 0.13.1? I went through the upgrade
manual and didn’t see anything that could explain why this is
happening.

This is what happens:

rake test_functional

  1. Error:
    test_auth_bob(UserControllerTest):
    NoMethodError: undefined method redirect_back_or_default' for #<UserController:0x36eb518> C:/cygwin/home/Fkim/test.com/config/../app/controllers/user_controller.rb:10:in login’

  2. Error:
    test_forgot_password(UserControllerTest):
    NoMethodError: undefined method user?' for #<UserController:0x36579a8> C:/cygwin/home/Fkim/test.com/config/../app/controllers/user_controller.rb:61:in forgot_password’

  3. Error:
    test_signup(UserControllerTest):
    NoMethodError: undefined method `inject_one_error=’ for
    ActionMailer::Base:Class

c:/ruby/lib/ruby/gems/1.8/gems/actionmailer-1.1.3/lib/action_mailer/base.rb:225:in

method_missing' ./test/functional/user_controller_test.rb:77:in do_test_signup’
./test/functional/user_controller_test.rb:144:in `test_signup’

Thanks,

Frank K.
http://meetingkoreans.com

I just upgraded to 0.14.3 today, and I’m using Salted Login Generator. I
had
a bunch of small problems (enough that I don’t remember them all), but I
don’t think I had this problem.

One thing to note is that my test_helper.rb includes:

require ‘test/mocks/test/time’

Another is that my environment.rb includes:

require ‘environments/localization_environment’
require ‘localization’
Localization::load_localized_strings
require ‘environments/user_environment’

I think that if you just do “rails”, it’ll overwrite those files and
blow
away the Salted Login Generator stuff.

Please note these problems are occuring with a fresh new Rails 0.14.3
application with the generated files from the Salted Hash Login
Generator.

On 11/9/05, Frank K. [email protected] wrote:

rake test_functional
NoMethodError: undefined method user?' for #<UserController:0x36579a8> ./test/functional/user_controller_test.rb:144:in test_signup’

Thanks,

Frank K.
http://meetingkoreans.com


Frank K.
http://meetingkoreans.com