diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2010-11-14 16:45:32 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2010-11-14 16:45:32 +0000 |
commit | 2fab7bd9b1f16d8e8c352dfe0c13d80ff896ea76 (patch) | |
tree | 498b1dbed91edb965db8a1cb46fc6e310fd2681e /test/functional/account_controller_test.rb | |
parent | 2ee45e8cac909991ddf782a8d2947ae99473404a (diff) | |
download | redmine-2fab7bd9b1f16d8e8c352dfe0c13d80ff896ea76.tar.gz redmine-2fab7bd9b1f16d8e8c352dfe0c13d80ff896ea76.zip |
Adds leading slash to all assert_redirected_to arguments (#6887).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4407 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional/account_controller_test.rb')
-rw-r--r-- | test/functional/account_controller_test.rb | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/test/functional/account_controller_test.rb b/test/functional/account_controller_test.rb index 1d66d01d3..ac8af4abb 100644 --- a/test/functional/account_controller_test.rb +++ b/test/functional/account_controller_test.rb @@ -64,7 +64,7 @@ class AccountControllerTest < ActionController::TestCase assert existing_user.save! post :login, :openid_url => existing_user.identity_url - assert_redirected_to 'my/page' + assert_redirected_to '/my/page' end def test_login_with_invalid_openid_provider @@ -86,14 +86,14 @@ class AccountControllerTest < ActionController::TestCase assert existing_user.save! post :login, :openid_url => existing_user.identity_url - assert_redirected_to 'login' + assert_redirected_to '/login' end def test_login_with_openid_with_new_user_created Setting.self_registration = '3' Setting.openid = '1' post :login, :openid_url => 'http://openid.example.com/good_user' - assert_redirected_to 'my/account' + assert_redirected_to '/my/account' user = User.find_by_login('cool_user') assert user assert_equal 'Cool', user.firstname @@ -113,7 +113,7 @@ class AccountControllerTest < ActionController::TestCase Setting.self_registration = '1' Setting.openid = '1' post :login, :openid_url => 'http://openid.example.com/good_user' - assert_redirected_to 'login' + assert_redirected_to '/login' user = User.find_by_login('cool_user') assert user @@ -125,7 +125,7 @@ class AccountControllerTest < ActionController::TestCase Setting.self_registration = '2' Setting.openid = '1' post :login, :openid_url => 'http://openid.example.com/good_user' - assert_redirected_to 'login' + assert_redirected_to '/login' user = User.find_by_login('cool_user') assert user assert_equal User::STATUS_REGISTERED, user.status @@ -157,7 +157,7 @@ class AccountControllerTest < ActionController::TestCase def test_logout @request.session[:user_id] = 2 get :logout - assert_redirected_to '' + assert_redirected_to '/' assert_nil @request.session[:user_id] end |