# Tests failing

**URL:** <https://www.ruby-forum.com/t/tests-failing/95136>\
**Category:** Engines\
**Created:** [January 13, 2006, 4:17pm UTC](https://www.ruby-forum.com/t/tests-failing/95136 "2006-01-13T16:17:19Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Britton\_Nielsen](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/df705f/32.png) [@Britton\_Nielsen](https://www.ruby-forum.com/u/Britton_Nielsen)\
**Post date:** [January 13, 2006, 4:17pm UTC](https://www.ruby-forum.com/t/tests-failing/95136/1 "2006-01-13T16:17:19Z")

</div>

I have the login controller and engines (1.0.4) setup and configured. I  
get the following errors when running the user\_controller functional  
tests. Any help would be appreciated.

-Britton

C:\rails\test\_user\_engine\>ruby  
vendor\plugins\login\_engine\test\functional\user\_  
controller\_test.rb  
Loaded suite  
vendor/plugins/login\_engine/test/functional/user\_controller\_test  
Started  
…E…F.F…  
Finished in 4.016 seconds.

1. Error:  
test\_delete(UserControllerTest):  
NoMethodError: You have a nil object when you didn’t expect it!  
The error occured while evaluating nil.deleted=  
C:/rails/test\_user\_engine/vendor/plugins/login\_engine/app/controllers/user\_c  
ontroller.rb:206:in `restore_deleted' c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/base. rb:853:in`send’  
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action\_controller/base.  
rb:853:in `perform_action_without_filters' c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/filte rs.rb:332:in`perform\_action\_without\_benchmark’  
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action\_controller/bench  
marking.rb:69:in `perform_action_without_rescue' c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/bench marking.rb:69:in`measure’  
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action\_controller/bench  
marking.rb:69:in `perform_action_without_rescue' c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/rescu e.rb:82:in`perform\_action’  
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action\_controller/base.  
rb:369:in `send' c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/base. rb:369:in`process\_without\_session\_management\_support’  
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action\_controller/sessi  
on\_management.rb:116:in `process_without_test' c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/test_ process.rb:16:in`process’  
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action\_controller/test\_  
process.rb:300:in `process' c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/test_ process.rb:307:in`post’  
vendor/plugins/login\_engine/test/functional/user\_controller\_test.rb:255:in  
`  
test\_delete’

2. Failure:  
test\_forgot\_password(UserControllerTest)  
[c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action\_controller/depr  
ecated\_assertions.rb:23:in `assert_session_has' vendor/plugins/login_engine/test/functional/user_controller_test.rb:461:in`do\_forgot\_password’  
vendor/plugins/login\_engine/test/functional/user\_controller\_test.rb:431:in  
`test\_forgot\_password’]:  
\<:user\> is not in the session \<#\<ActionController::TestSession:0x37d70c0  
@attributes=  
{“return-to”=\>"/bogus/location",  
“flash”=\>  
{:warning=\>“Password could not be changed at this time. Please  
retry.”}}\>\>

3. Failure:  
test\_home\_without\_login(UserControllerTest)  
[vendor/plugins/login\_engine/test/fu  
nctional/user\_controller\_test.rb:33]:  
Expected response to be a \<:redirect\>, but was \<200\>

19 tests, 122 assertions, 2 failures, 1 errors
