mirror of
https://github.com/redmine/redmine.git
synced 2025-11-02 11:25:55 +01:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user