summaryrefslogtreecommitdiffstats
path: root/test/functional
diff options
context:
space:
mode:
Diffstat (limited to 'test/functional')
-rw-r--r--test/functional/account_controller_test.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/functional/account_controller_test.rb b/test/functional/account_controller_test.rb
index 1adb92eea..00142ffd0 100644
--- a/test/functional/account_controller_test.rb
+++ b/test/functional/account_controller_test.rb
@@ -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