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.
-
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:inusers' ./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’ -
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:inusers' ./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’ -
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:inassert_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”=>{}}>> -
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:inassert_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”=>{}}>> -
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:inusers' ./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’ -
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:inusers' ./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’ -
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:inassert_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”=>{}}>> -
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:inassert_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”=>{}}>> -
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:inusers' ./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’ -
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:inusers' ./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’ -
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:inassert_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”=>{}}>> -
Failure:
test_delete(UserControllerTest)
[/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/
action_controller/deprecated_assertions.rb:23:inassert_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”=>{}}>> -
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:inusers' ./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’ -
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:inusers' ./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’ -
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:inassert_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”=>{}}>> -
Failure:
test_edit(UserControllerTest)
[/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/
action_controller/deprecated_assertions.rb:23:inassert_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”=>{}}>> -
Failure:
test_forgot_password(UserControllerTest)
[./vendor/plugins/login_engine/test/functional/
user_controller_test.rb:454:indo_forgot_password' ./vendor/plugins/login_engine/test/functional/ user_controller_test.rb:431:in
test_forgot_password’]:
<1> expected but was
<0>. -
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:inassert_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”=>{}}>> -
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:inusers' ./vendor/plugins/user_engine/test/functional/ user_controller_test.rb:45:in
test_login’ -
Failure:
test_login_logoff(UserControllerTest)
[/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/
action_controller/deprecated_assertions.rb:23:inassert_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”=>{}}>> -
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:inusers' ./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’ -
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:inusers' ./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’ -
Failure:
test_signup(UserControllerTest) [./vendor/plugins/login_engine/test/
functional/user_controller_test.rb:80]:
<5> expected but was
<3>. -
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:inassert_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 -
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:inassert_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 -
Failure:
test_signup_without_email(UserControllerTest) [./vendor/plugins/
login_engine/test/functional/user_controller_test.rb:154]:
expected to be =~
</Signup successful/>. -
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:inusers' ./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’ -
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:inusers' ./vendor/plugins/login_engine/test/unit/user_test.rb:13:in
test_auth’ -
Failure:
test_collision(UserTest) [./vendor/plugins/login_engine/test/unit/
user_test.rb:82]:
is not true. -
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:inusers' ./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: [email protected]