Fixed registration form broken by r8479.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8782 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2012-02-05 12:17:29 +00:00
parent d57fbc9512
commit 9f6496b0bc
3 changed files with 14 additions and 7 deletions

View File

@@ -167,6 +167,9 @@ class AccountControllerTest < ActionController::TestCase
assert_response :success
assert_template 'register'
assert_not_nil assigns(:user)
assert_tag 'input', :attributes => {:name => 'user[password]'}
assert_tag 'input', :attributes => {:name => 'user[password_confirmation]'}
end
end
@@ -193,6 +196,10 @@ class AccountControllerTest < ActionController::TestCase
end
user = User.first(:order => 'id DESC')
assert_equal 'register', user.login
assert_equal 'John', user.firstname
assert_equal 'Doe', user.lastname
assert_equal 'register@example.com', user.mail
assert user.check_password?('test')
assert user.active?
end
end