diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2008-06-09 18:59:15 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2008-06-09 18:59:15 +0000 |
commit | 19cb6f96f4bf3f10780e292d7b5b59d880b673e8 (patch) | |
tree | 0b746347d7e574745165e615a5470b2a510ede45 /test/integration/account_test.rb | |
parent | 80a7486f95a39ad3fc0946fad17fe51cff01cec6 (diff) | |
download | redmine-19cb6f96f4bf3f10780e292d7b5b59d880b673e8.tar.gz redmine-19cb6f96f4bf3f10780e292d7b5b59d880b673e8.zip |
Log the user in after registration if account activation is not needed.
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1521 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/integration/account_test.rb')
-rw-r--r-- | test/integration/account_test.rb | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/test/integration/account_test.rb b/test/integration/account_test.rb index e9d665d19..a01a3ba09 100644 --- a/test/integration/account_test.rb +++ b/test/integration/account_test.rb @@ -67,8 +67,12 @@ class AccountTest < ActionController::IntegrationTest post 'account/register', :user => {:login => "newuser", :language => "en", :firstname => "New", :lastname => "User", :mail => "newuser@foo.bar"}, :password => "newpass", :password_confirmation => "newpass" - assert_redirected_to 'account/login' - log_user('newuser', 'newpass') + assert_redirected_to 'my/account' + follow_redirect! + assert_response :success + assert_template 'my/account' + + assert User.find_by_login('newuser').active? end def test_register_with_manual_activation |