# Out the box tests failing (user and login engines)

**URL:** <https://www.ruby-forum.com/t/out-the-box-tests-failing-user-and-login-engines/56176>\
**Category:** Engines\
**Created:** [March 28, 2006, 4:24pm UTC](https://www.ruby-forum.com/t/out-the-box-tests-failing-user-and-login-engines/56176 "2006-03-28T16:24:19Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Andre\_Sachs](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/a698b9/32.png) [@Andre\_Sachs](https://www.ruby-forum.com/u/Andre_Sachs)\
**Post date:** [March 28, 2006, 4:24pm UTC](https://www.ruby-forum.com/t/out-the-box-tests-failing-user-and-login-engines/56176/1 "2006-03-28T16:24:19Z")

</div>

Hi,

I am having some difficulty running the tests that arrive with the  
login and user engines using the following command :

```
rake test_plugins

```

I am running rails 1.0 with ruby 1.8.4

Any ideas or help would be appreciated.

Here is the output of the failures :

(in /Users/asachs/hope/src/hope)  
/usr/local/bin/ruby -Ilib:test “/usr/local/lib/ruby/gems/1.8/gems/  
rake-0.7.0/lib/rake/rake\_test\_loader.rb” “vendor/plugins/engines/test/  
action\_view\_extensions\_test.rb” “vendor/plugins/engines/test/  
ruby\_extensions\_test.rb” “vendor/plugins/login\_engine/test/functional/  
user\_controller\_test.rb” “vendor/plugins/login\_engine/test/unit/  
user\_test.rb” “vendor/plugins/user\_engine/test/functional/  
permission\_controller\_test.rb” “vendor/plugins/user\_engine/test/  
functional/role\_controller\_test.rb” “vendor/plugins/user\_engine/test/  
functional/user\_controller\_test.rb” “vendor/plugins/user\_engine/test/  
unit/permission\_test.rb” “vendor/plugins/user\_engine/test/unit/  
role\_test.rb” “vendor/plugins/user\_engine/test/unit/user\_test.rb”  
Loaded suite /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.0/lib/rake/  
rake\_test\_loader  
Started  
…EEFFEEFFEEFFEEFFFF…EFE.EFF.FFE…E.F…E…  
Finished in 3.155841 seconds.

1. Error:  
test\_admin\_authorized(UserControllerTest):  
NoMethodError: You have a nil object when you didn’t expect it!  
You might have expected an instance of Array.  
The error occured while evaluating nil.[]  
/Users/asachs/hope/src/hope/config/…/vendor/plugins/engines/lib/  
engines/testing\_extensions.rb:285:in `users' ./vendor/plugins/user_engine/test/unit/../test_helper.rb:62:in`login’  
./vendor/plugins/user\_engine/test/functional/  
user\_controller\_test.rb:71:in `test\_admin\_authorized’

2. Error:  
test\_change\_password\_for\_user\_with\_bad\_email(UserControllerTest):  
NoMethodError: You have a nil object when you didn’t expect it!  
You might have expected an instance of Array.  
The error occured while evaluating nil.[]  
/Users/asachs/hope/src/hope/config/…/vendor/plugins/engines/lib/  
engines/testing\_extensions.rb:285:in `users' ./vendor/plugins/user_engine/test/unit/../test_helper.rb:62:in`login’  
./vendor/plugins/user\_engine/test/functional/  
user\_controller\_test.rb:220:in  
`test\_change\_password\_for\_user\_with\_bad\_email’

3. Failure:  
test\_change\_password\_with\_bad\_email(UserControllerTest)  
[/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/  
action\_controller/deprecated\_assertions.rb:23:in `assert_session_has' ./vendor/plugins/login_engine/test/functional/ user_controller_test.rb:399:in`test\_change\_password\_with\_bad\_email’]:  
\<:user\> is not in the session \<#\<ActionController::TestSession:0x57f8c8  
@attributes=  
{“prev\_uri”=\>"/user/login?user=passwordatestloginbob",  
:user=\>nil,  
“flash”=\>{}}\>\>

4. Failure:  
test\_change\_short\_password(UserControllerTest)  
[/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/  
action\_controller/deprecated\_assertions.rb:23:in `assert_session_has' ./vendor/plugins/login_engine/test/functional/ user_controller_test.rb:364:in`test\_change\_short\_password’]:  
\<:user\> is not in the session \<#\<ActionController::TestSession:0x24ebc74  
@attributes=  
{“prev\_uri”=\>"/user/login?user=passwordatestloginbob",  
:user=\>nil,  
“flash”=\>{}}\>\>

5. Error:  
test\_change\_short\_password\_for\_user(UserControllerTest):  
NoMethodError: You have a nil object when you didn’t expect it!  
You might have expected an instance of Array.  
The error occured while evaluating nil.[]  
/Users/asachs/hope/src/hope/config/…/vendor/plugins/engines/lib/  
engines/testing\_extensions.rb:285:in `users' ./vendor/plugins/user_engine/test/unit/../test_helper.rb:62:in`login’  
./vendor/plugins/user\_engine/test/functional/  
user\_controller\_test.rb:187:in `test\_change\_short\_password\_for\_user’

6. Error:  
test\_change\_short\_password\_for\_user\_without\_email(UserControllerTest):  
NoMethodError: You have a nil object when you didn’t expect it!  
You might have expected an instance of Array.  
The error occured while evaluating nil.[]  
/Users/asachs/hope/src/hope/config/…/vendor/plugins/engines/lib/  
engines/testing\_extensions.rb:285:in `users' ./vendor/plugins/user_engine/test/unit/../test_helper.rb:62:in`login’  
./vendor/plugins/user\_engine/test/functional/  
user\_controller\_test.rb:204:in  
`test\_change\_short\_password\_for\_user\_without\_email’

7. Failure:  
test\_change\_short\_password\_without\_email(UserControllerTest)  
[/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/  
action\_controller/deprecated\_assertions.rb:23:in `assert_session_has' ./vendor/plugins/login_engine/test/functional/ user_controller_test.rb:380:in`test\_change\_short\_password\_without\_email’]:  
\<:user\> is not in the session \<#\<ActionController::TestSession:0x24b5cdc  
@attributes=  
{“prev\_uri”=\>"/user/login?user=passwordatestloginbob",  
:user=\>nil,  
“flash”=\>{}}\>\>

8. Failure:  
test\_change\_valid\_password(UserControllerTest)  
[/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/  
action\_controller/deprecated\_assertions.rb:23:in `assert_session_has' ./vendor/plugins/login_engine/test/functional/ user_controller_test.rb:314:in`test\_change\_valid\_password’]:  
\<:user\> is not in the session \<#\<ActionController::TestSession:0x247bc58  
@attributes=  
{“prev\_uri”=\>"/user/login?user=passwordatestloginbob",  
:user=\>nil,  
“flash”=\>{}}\>\>

9. Error:  
test\_change\_valid\_password\_for\_user(UserControllerTest):  
NoMethodError: You have a nil object when you didn’t expect it!  
You might have expected an instance of Array.  
The error occured while evaluating nil.[]  
/Users/asachs/hope/src/hope/config/…/vendor/plugins/engines/lib/  
engines/testing\_extensions.rb:285:in `users' ./vendor/plugins/user_engine/test/unit/../test_helper.rb:62:in`login’  
./vendor/plugins/user\_engine/test/functional/  
user\_controller\_test.rb:152:in `test\_change\_valid\_password\_for\_user’

10. Error:  
test\_change\_valid\_password\_for\_user\_without\_email(UserControllerTest):  
NoMethodError: You have a nil object when you didn’t expect it!  
You might have expected an instance of Array.  
The error occured while evaluating nil.[]  
/Users/asachs/hope/src/hope/config/…/vendor/plugins/engines/lib/  
engines/testing\_extensions.rb:285:in `users' ./vendor/plugins/user_engine/test/unit/../test_helper.rb:62:in`login’  
./vendor/plugins/user\_engine/test/functional/  
user\_controller\_test.rb:173:in  
`test\_change\_valid\_password\_for\_user\_without\_email’

11. Failure:  
test\_change\_valid\_password\_without\_email(UserControllerTest)  
[/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/  
action\_controller/deprecated\_assertions.rb:23:in `assert_session_has' ./vendor/plugins/login_engine/test/functional/ user_controller_test.rb:342:in`test\_change\_valid\_password\_without\_email’]:  
\<:user\> is not in the session \<#\<ActionController::TestSession:0x24413c8  
@attributes=  
{“prev\_uri”=\>"/user/login?user=passwordatestloginbob",  
:user=\>nil,  
“flash”=\>{}}\>\>

12. Failure:  
test\_delete(UserControllerTest)  
[/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/  
action\_controller/deprecated\_assertions.rb:23:in `assert_session_has' ./vendor/plugins/login_engine/test/functional/ user_controller_test.rb:228:in`test\_delete’]:  
\<:user\> is not in the session \<#\<ActionController::TestSession:0x2418cac  
@attributes=  
{“prev\_uri”=\>"/user/login?user=passwordalongtestlogindeletebob1",  
:user=\>nil,  
“flash”=\>{}}\>\>

13. Error:  
test\_delete\_user\_no\_delay(UserControllerTest):  
NoMethodError: You have a nil object when you didn’t expect it!  
You might have expected an instance of Array.  
The error occured while evaluating nil.[]  
/Users/asachs/hope/src/hope/config/…/vendor/plugins/engines/lib/  
engines/testing\_extensions.rb:285:in `users' ./vendor/plugins/user_engine/test/unit/../test_helper.rb:62:in`login’  
./vendor/plugins/user\_engine/test/functional/  
user\_controller\_test.rb:128:in `test\_delete\_user\_no\_delay’

14. Error:  
test\_delete\_user\_with\_delay(UserControllerTest):  
NoMethodError: You have a nil object when you didn’t expect it!  
You might have expected an instance of Array.  
The error occured while evaluating nil.[]  
/Users/asachs/hope/src/hope/config/…/vendor/plugins/engines/lib/  
engines/testing\_extensions.rb:285:in `users' ./vendor/plugins/user_engine/test/unit/../test_helper.rb:62:in`login’  
./vendor/plugins/user\_engine/test/functional/  
user\_controller\_test.rb:137:in `test\_delete\_user\_with\_delay’

15. Failure:  
test\_delete\_without\_email(UserControllerTest)  
[/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/  
action\_controller/deprecated\_assertions.rb:23:in `assert_session_has' ./vendor/plugins/login_engine/test/functional/ user_controller_test.rb:274:in`test\_delete\_without\_email’]:  
\<:user\> is not in the session \<#\<ActionController::TestSession:0x23f070c  
@attributes=  
{“prev\_uri”=\>"/user/login?user=passwordalongtestlogindeletebob1",  
:user=\>nil,  
“flash”=\>{}}\>\>

16. Failure:  
test\_edit(UserControllerTest)  
[/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/  
action\_controller/deprecated\_assertions.rb:23:in `assert_session_has' ./vendor/plugins/login_engine/test/functional/ user_controller_test.rb:205:in`test\_edit’]:  
\<:user\> is not in the session \<#\<ActionController::TestSession:0x23b623c  
@attributes=  
{“prev\_uri”=\>"/user/login?user=passwordatestloginbob",  
:user=\>nil,  
“flash”=\>{}}\>\>

17. Failure:  
test\_forgot\_password(UserControllerTest)  
[./vendor/plugins/login\_engine/test/functional/  
user\_controller\_test.rb:454:in `do_forgot_password' ./vendor/plugins/login_engine/test/functional/ user_controller_test.rb:431:in`test\_forgot\_password’]:  
\<1\> expected but was  
\<0\>.

18. Failure:  
test\_forgot\_password\_without\_email\_and\_logged\_in(UserControllerTest)  
[/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/  
action\_controller/deprecated\_assertions.rb:23:in `assert_session_has' ./vendor/plugins/login_engine/test/functional/ user_controller_test.rb:505:in`test\_forgot\_password\_without\_email\_and\_logged\_in’]:  
\<:user\> is not in the session \<#\<ActionController::TestSession:0x237e210  
@attributes=  
{“prev\_uri”=\>"/user/login?user=passwordatestloginbob",  
:user=\>nil,  
“flash”=\>{}}\>\>

19. Error:  
test\_login(UserControllerTest):  
NoMethodError: You have a nil object when you didn’t expect it!  
You might have expected an instance of Array.  
The error occured while evaluating nil.[]  
/Users/asachs/hope/src/hope/config/…/vendor/plugins/engines/lib/  
engines/testing\_extensions.rb:285:in `users' ./vendor/plugins/user_engine/test/functional/ user_controller_test.rb:45:in`test\_login’

20. Failure:  
test\_login\_logoff(UserControllerTest)  
[/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/  
action\_controller/deprecated\_assertions.rb:23:in `assert_session_has' ./vendor/plugins/login_engine/test/functional/ user_controller_test.rb:59:in`test\_login\_logoff’]:  
\<:user\> is not in the session \<#\<ActionController::TestSession:0x22f3bec  
@attributes=  
{“prev\_uri”=\>"/user/login?user=passwordatestloginbob",  
:user=\>nil,  
“flash”=\>{}}\>\>

21. Error:  
test\_new\_user(UserControllerTest):  
NoMethodError: You have a nil object when you didn’t expect it!  
You might have expected an instance of Array.  
The error occured while evaluating nil.[]  
/Users/asachs/hope/src/hope/config/…/vendor/plugins/engines/lib/  
engines/testing\_extensions.rb:285:in `users' ./vendor/plugins/user_engine/test/unit/../test_helper.rb:62:in`login’  
./vendor/plugins/user\_engine/test/functional/  
user\_controller\_test.rb:85:in `test\_new\_user’

22. Error:  
test\_show\_user(UserControllerTest):  
NoMethodError: You have a nil object when you didn’t expect it!  
You might have expected an instance of Array.  
The error occured while evaluating nil.[]  
/Users/asachs/hope/src/hope/config/…/vendor/plugins/engines/lib/  
engines/testing\_extensions.rb:285:in `users' ./vendor/plugins/user_engine/test/unit/../test_helper.rb:62:in`login’  
./vendor/plugins/user\_engine/test/functional/  
user\_controller\_test.rb:105:in `test\_show\_user’

23. Failure:  
test\_signup(UserControllerTest) [./vendor/plugins/login\_engine/test/  
functional/user\_controller\_test.rb:80]:  
\<5\> expected but was  
\<3\>.

24. Failure:  
test\_signup\_bad\_details(UserControllerTest)  
[/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/  
action\_controller/deprecated\_assertions.rb:116:in `assert_template_has' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/ action_controller/deprecated_assertions.rb:194:in`find\_record\_in\_template’  
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/  
action\_controller/deprecated\_assertions.rb:176:in  
`assert_invalid_column_on_record' ./vendor/plugins/login_engine/test/functional/ user_controller_test.rb:171:in`test\_signup\_bad\_details’]:  
\<“user”\> is not a template object

25. Failure:  
test\_signup\_bad\_password(UserControllerTest)  
[/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/  
action\_controller/deprecated\_assertions.rb:116:in `assert_template_has' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/ action_controller/deprecated_assertions.rb:194:in`find\_record\_in\_template’  
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/  
action\_controller/deprecated\_assertions.rb:176:in  
`assert_invalid_column_on_record' ./vendor/plugins/login_engine/test/functional/ user_controller_test.rb:128:in`test\_signup\_bad\_password’]:  
\<“user”\> is not a template object

26. Failure:  
test\_signup\_without\_email(UserControllerTest) [./vendor/plugins/  
login\_engine/test/functional/user\_controller\_test.rb:154]:  
 expected to be =~  
\</Signup successful/\>.

27. Error:  
test\_unauthorized\_access(UserControllerTest):  
NoMethodError: You have a nil object when you didn’t expect it!  
You might have expected an instance of Array.  
The error occured while evaluating nil.[]  
/Users/asachs/hope/src/hope/config/…/vendor/plugins/engines/lib/  
engines/testing\_extensions.rb:285:in `users' ./vendor/plugins/user_engine/test/unit/../test_helper.rb:62:in`login’  
./vendor/plugins/user\_engine/test/functional/  
user\_controller\_test.rb:52:in `test\_unauthorized\_access’

28. Error:  
test\_auth(UserTest):  
NoMethodError: You have a nil object when you didn’t expect it!  
You might have expected an instance of Array.  
The error occured while evaluating nil.find  
/Users/asachs/hope/src/hope/config/…/vendor/plugins/engines/lib/  
engines/testing\_extensions.rb:287:in `users' ./vendor/plugins/login_engine/test/unit/user_test.rb:13:in`test\_auth’

29. Failure:  
test\_collision(UserTest) [./vendor/plugins/login\_engine/test/unit/  
user\_test.rb:82]:  
 is not true.

30. Error:  
test\_passwordchange(UserTest):  
NoMethodError: You have a nil object when you didn’t expect it!  
You might have expected an instance of Array.  
The error occured while evaluating nil.find  
/Users/asachs/hope/src/hope/config/…/vendor/plugins/engines/lib/  
engines/testing\_extensions.rb:287:in `users' ./vendor/plugins/login_engine/test/unit/user_test.rb:20:in`test\_passwordchange’

69 tests, 220 assertions, 16 failures, 14 errors  
rake aborted!  
Command failed with status (1): [/usr/local/bin/ruby -Ilib:test "/usr/  
local…]

Regards  
Andre

–  
Andre Sachs  
IT Architect, Clue Technologies PTY (LTD)  
email: removed\_email\_address@domain.invalid
