diff options
author | José Valim <jose.valim@gmail.com> | 2010-12-19 09:28:15 +0100 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2010-12-19 09:28:15 +0100 |
commit | d592fa946d43fdadf23f872a5c3334fb4f108f80 (patch) | |
tree | 904e3947cdd348fae1858ee3feeb82f27c814086 /activemodel/test | |
parent | bd9dc4ff23ab1e185df6ccf35d6058c0a3d234ce (diff) | |
download | rails-d592fa946d43fdadf23f872a5c3334fb4f108f80.tar.gz rails-d592fa946d43fdadf23f872a5c3334fb4f108f80.tar.bz2 rails-d592fa946d43fdadf23f872a5c3334fb4f108f80.zip |
Avoid warnings and fix small typo on SecurePassword.
Diffstat (limited to 'activemodel/test')
-rw-r--r-- | activemodel/test/cases/secure_password_test.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/activemodel/test/cases/secure_password_test.rb b/activemodel/test/cases/secure_password_test.rb index 62fffce233..c46a092d2d 100644 --- a/activemodel/test/cases/secure_password_test.rb +++ b/activemodel/test/cases/secure_password_test.rb @@ -34,11 +34,13 @@ class SecurePasswordTest < ActiveModel::TestCase end test "too weak passwords" do - @user.password = "123456" + @user.password = "012345" assert !@user.valid? + assert_equal ["must be longer than 6 characters"], @user.errors[:password] @user.password = "password" assert !@user.valid? + assert_equal ["is too weak and common"], @user.errors[:password] @user.password = "d9034rfjlakj34RR$!!" assert @user.valid? |