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/account_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/account_controller_test.rb')
-rw-r--r-- | test/functional/account_controller_test.rb | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/test/functional/account_controller_test.rb b/test/functional/account_controller_test.rb index 05c3b047b..c715fa80d 100644 --- a/test/functional/account_controller_test.rb +++ b/test/functional/account_controller_test.rb @@ -119,8 +119,8 @@ class AccountControllerTest < ActionController::TestCase assert_difference 'User.count' do post :register, :user => { :login => 'register', - :password => 'test', - :password_confirmation => 'test', + :password => 'secret123', + :password_confirmation => 'secret123', :firstname => 'John', :lastname => 'Doe', :mail => 'register@example.com' @@ -132,7 +132,7 @@ class AccountControllerTest < ActionController::TestCase assert_equal 'John', user.firstname assert_equal 'Doe', user.lastname assert_equal 'register@example.com', user.mail - assert user.check_password?('test') + assert user.check_password?('secret123') assert user.active? end end @@ -218,10 +218,10 @@ class AccountControllerTest < ActionController::TestCase user = User.find(2) token = Token.create!(:action => 'recovery', :user => user) - post :lost_password, :token => token.value, :new_password => 'newpass', :new_password_confirmation => 'newpass' + post :lost_password, :token => token.value, :new_password => 'newpass123', :new_password_confirmation => 'newpass123' assert_redirected_to '/login' user.reload - assert user.check_password?('newpass') + assert user.check_password?('newpass123') assert_nil Token.find_by_id(token.id), "Token was not deleted" end @@ -230,9 +230,9 @@ class AccountControllerTest < ActionController::TestCase token = Token.create!(:action => 'recovery', :user => user) user.lock! - post :lost_password, :token => token.value, :new_password => 'newpass', :new_password_confirmation => 'newpass' + post :lost_password, :token => token.value, :new_password => 'newpass123', :new_password_confirmation => 'newpass123' assert_redirected_to '/' - assert ! user.check_password?('newpass') + assert ! user.check_password?('newpass123') end def test_post_lost_password_with_token_and_password_confirmation_failure_should_redisplay_the_form |