# SaltedHashLoginGenerator functional tests fail on Rails 0.14

**URL:** <https://www.ruby-forum.com/t/saltedhashlogingenerator-functional-tests-fail-on-rails-0-14/93885>\
**Category:** Rails\
**Created:** [November 12, 2005, 12:49pm UTC](https://www.ruby-forum.com/t/saltedhashlogingenerator-functional-tests-fail-on-rails-0-14/93885 "2005-11-12T12:49:40Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mtmusko](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/ecccb3/32.png) [@mtmusko](https://www.ruby-forum.com/u/mtmusko)\
**Post date:** [November 12, 2005, 12:49pm UTC](https://www.ruby-forum.com/t/saltedhashlogingenerator-functional-tests-fail-on-rails-0-14/93885/1 "2005-11-12T12:49:40Z")

</div>

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](http://meetingkoreans.com)

---

<div class="post-metadata">

**Author:** ![mtmusko](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/ecccb3/32.png) [@mtmusko](https://www.ruby-forum.com/u/mtmusko)\
**Post date:** [November 12, 2005, 12:49pm UTC](https://www.ruby-forum.com/t/saltedhashlogingenerator-functional-tests-fail-on-rails-0-14/93885/2 "2005-11-12T12:49:42Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![mtmusko](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/ecccb3/32.png) [@mtmusko](https://www.ruby-forum.com/u/mtmusko)\
**Post date:** [November 12, 2005, 12:49pm UTC](https://www.ruby-forum.com/t/saltedhashlogingenerator-functional-tests-fail-on-rails-0-14/93885/3 "2005-11-12T12:49:48Z")

</div>

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](mailto: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](http://meetingkoreans.com)

–  
Frank K.  
[http://meetingkoreans.com](http://meetingkoreans.com)

> **[betweengo.com](http://ww38.betweengo.com/)**
>
> This domain may be for sale!
