search for: test_auth

Displaying 4 results from an estimated 4 matches for "test_auth".

2005 Oct 27
2
Fixtures are not loading into instance variables. Why not?
...installed the SaltedLoginGenerator and generated its output. Running the unit tests gives an error, so I cut it down to just 1 test: ------------------------------ require File.dirname(__FILE__) + ''/../test_helper'' class UserTest < Test::Unit::TestCase fixtures :users def test_auth p @bob p @users assert_equal @bob, User.authenticate("bob", "atest") end end ------------------------------ Note that the 2 print statements both produce nil. The assert statement fails because the User.authenticate method DOES retrieve the correct object fro...
2006 Apr 13
3
Salted Hash Login Generator problem
...usr/lib/ruby/gems/1.8/gems/rake-0.7.0/lib/rake/rake_test_loader .rb" "test/unit/localization_test.rb" "test/unit/user_test.rb" Loaded suite /usr/lib/ruby/gems/1.8/gems/rake-0.7.0/lib/rake/rake_test_loader Started ........F....E Finished in 0.108794 seconds. 1) Failure: test_auth(UserTest) [./test/unit/user_test.rb:9]: <nil> expected but was <#<User:0xb75d7210 @attributes= {"salt"=>"7f8b036f9b647d46d22abdbfc8113f44a88f9889", "delete_after"=>nil, "security_token"=>nil, "role"=>nil, &quot...
2010 Feb 11
1
[PATCH] Provides a reference implementation management server.
..._.py | 18 ++ server/ovirtserver/templates/error.html | 19 ++ server/ovirtserver/templates/index.html | 20 ++ server/ovirtserver/tests/__init__.py | 80 +++++++ server/ovirtserver/tests/functional/__init__.py | 18 ++ .../tests/functional/test_authentication.py | 16 ++ server/ovirtserver/tests/functional/test_root.py | 48 ++++ server/ovirtserver/tests/models/__init__.py | 68 ++++++ server/ovirtserver/tests/models/test_auth.py | 22 ++ server/ovirtserver/websetup.py | 42 ++++ server/serve...
2010 Feb 17
0
[PATCH] Provides the new node lifecycle events.
..._.py | 18 -- server/ovirtserver/templates/error.html | 19 -- server/ovirtserver/templates/index.html | 20 -- server/ovirtserver/tests/__init__.py | 80 ------- server/ovirtserver/tests/functional/__init__.py | 18 -- .../tests/functional/test_authentication.py | 16 -- server/ovirtserver/tests/functional/test_root.py | 48 ---- server/ovirtserver/tests/models/__init__.py | 68 ------ server/ovirtserver/tests/models/test_auth.py | 22 -- server/ovirtserver/urls.py | 10 + server/ovirtser...