summaryrefslogtreecommitdiffstats
path: root/test/unit/user_test.rb
diff options
context:
space:
mode:
authorEric Davis <edavis@littlestreamsoftware.com>2009-02-11 19:07:12 +0000
committerEric Davis <edavis@littlestreamsoftware.com>2009-02-11 19:07:12 +0000
commit0310f43126ac8a8a7e14c8c3a09118b34ed6ff2f (patch)
treefaa9815334b14724c0ea4c9b9bf0a7f2077209a4 /test/unit/user_test.rb
parent896e64b759aee595766969799bb2169e65a46cd6 (diff)
downloadredmine-0310f43126ac8a8a7e14c8c3a09118b34ed6ff2f.tar.gz
redmine-0310f43126ac8a8a7e14c8c3a09118b34ed6ff2f.zip
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
Diffstat (limited to 'test/unit/user_test.rb')
-rw-r--r--test/unit/user_test.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/unit/user_test.rb b/test/unit/user_test.rb
index e8500623a..54f15b69f 100644
--- a/test/unit/user_test.rb
+++ b/test/unit/user_test.rb
@@ -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