Forum: Ruby on Rails SaltedHashLoginGenerator functional tests fail on Rails 0.14

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
mtmusko (Guest)
on 2005-11-12 13:49
(Received via mailing list)
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'

  5) 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'

  7) 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
smedberg (Guest)
on 2005-11-12 13:49
(Received via mailing list)
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.
mtmusko (Guest)
on 2005-11-12 13:49
(Received via mailing list)
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:in `test_signup'
>
> Thanks,
> --
> Frank K.
> http://meetingkoreans.com
>


--
Frank K.
http://meetingkoreans.com
http://betweengo.com
This topic is locked and can not be replied to.