diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-11-27 21:52:38 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-11-27 21:52:38 +0000 |
commit | e43448f6cae297b8364c0d0520daf8f0041649c7 (patch) | |
tree | e0cbb1053479b9d32c18025ff4b0b684f333d6e3 /test/functional/users_controller_test.rb | |
parent | 14e56006a1f83ceb70291234d7b609150446aefb (diff) | |
download | redmine-e43448f6cae297b8364c0d0520daf8f0041649c7.tar.gz redmine-e43448f6cae297b8364c0d0520daf8f0041649c7.zip |
Use 8+ characters long passwords in tests.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10886 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional/users_controller_test.rb')
-rw-r--r-- | test/functional/users_controller_test.rb | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/test/functional/users_controller_test.rb b/test/functional/users_controller_test.rb index db912bf6d..6ff9b72ab 100644 --- a/test/functional/users_controller_test.rb +++ b/test/functional/users_controller_test.rb @@ -173,8 +173,8 @@ class UsersControllerTest < ActionController::TestCase :firstname => 'John', :lastname => 'Doe', :login => 'jdoe', - :password => 'secret', - :password_confirmation => 'secret', + :password => 'secret123', + :password_confirmation => 'secret123', :mail => 'jdoe@gmail.com', :mail_notification => 'none' }, @@ -190,7 +190,7 @@ class UsersControllerTest < ActionController::TestCase assert_equal 'jdoe', user.login assert_equal 'jdoe@gmail.com', user.mail assert_equal 'none', user.mail_notification - assert user.check_password?('secret') + assert user.check_password?('secret123') mail = ActionMailer::Base.deliveries.last assert_not_nil mail @@ -205,8 +205,8 @@ class UsersControllerTest < ActionController::TestCase :firstname => 'John', :lastname => 'Doe', :login => 'jdoe', - :password => 'secret', - :password_confirmation => 'secret', + :password => 'secret123', + :password_confirmation => 'secret123', :mail => 'jdoe@gmail.com', :mail_notification => 'none' }, @@ -287,14 +287,14 @@ class UsersControllerTest < ActionController::TestCase ActionMailer::Base.deliveries.clear Setting.bcc_recipients = '1' - put :update, :id => 2, :user => {:password => 'newpass', :password_confirmation => 'newpass'}, :send_information => '1' + put :update, :id => 2, :user => {:password => 'newpass123', :password_confirmation => 'newpass123'}, :send_information => '1' u = User.find(2) - assert u.check_password?('newpass') + assert u.check_password?('newpass123') mail = ActionMailer::Base.deliveries.last assert_not_nil mail assert_equal [u.mail], mail.bcc - assert_mail_body_match 'newpass', mail + assert_mail_body_match 'newpass123', mail end def test_update_user_switchin_from_auth_source_to_password_authentication @@ -303,10 +303,10 @@ class UsersControllerTest < ActionController::TestCase u.auth_source = AuthSource.find(1) u.save! - put :update, :id => u.id, :user => {:auth_source_id => '', :password => 'newpass', :password_confirmation => 'newpass'} + put :update, :id => u.id, :user => {:auth_source_id => '', :password => 'newpass123', :password_confirmation => 'newpass123'} assert_equal nil, u.reload.auth_source - assert u.check_password?('newpass') + assert u.check_password?('newpass123') end def test_update_notified_project |