summaryrefslogtreecommitdiffstats
path: root/test/unit/user_test.rb
diff options
context:
space:
mode:
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