SaltedHashLoginGenerator functional tests fail on Rails 0.14


#1

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:inlogin’

  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:inforgot_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:indo_test_signup’
./test/functional/user_controller_test.rb:144:in `test_signup’

Thanks,

Frank K.
http://meetingkoreans.com


#2

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.


#3

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. removed_email_address@domain.invalid wrote:

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

Thanks,

Frank K.
http://meetingkoreans.com


Frank K.
http://meetingkoreans.com
http://betweengo.com