Hooked up on the fly OpenID user creation.
* Use OpenID registration fields for the user. * Generate a random password when a user is created. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2443 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -177,4 +177,11 @@ class UserTest < Test::Unit::TestCase
|
||||
assert_not_nil u
|
||||
assert_equal 'jsmith@somenet.foo', u.mail
|
||||
end
|
||||
|
||||
def test_random_password
|
||||
u = User.new
|
||||
u.random_password
|
||||
assert !u.password.blank?
|
||||
assert !u.password_confirmation.blank?
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user