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/integration/account_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/integration/account_test.rb')
-rw-r--r-- | test/integration/account_test.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/integration/account_test.rb b/test/integration/account_test.rb index 8307702e0..69e42f6d1 100644 --- a/test/integration/account_test.rb +++ b/test/integration/account_test.rb @@ -44,7 +44,7 @@ class AccountTest < ActionController::IntegrationTest # User logs in with 'autologin' checked post '/login', :username => user.login, :password => 'admin', :autologin => 1 - assert_redirected_to 'my/page' + assert_redirected_to '/my/page' token = Token.find :first assert_not_nil token assert_equal user, token.user @@ -105,7 +105,7 @@ 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 'my/account' + assert_redirected_to '/my/account' follow_redirect! assert_response :success assert_template 'my/account' @@ -152,7 +152,7 @@ class AccountTest < ActionController::IntegrationTest AuthSource.expects(:authenticate).returns({:login => 'foo', :firstname => 'Foo', :lastname => 'Smith', :mail => 'foo@bar.com', :auth_source_id => 66}) post 'account/login', :username => 'foo', :password => 'bar' - assert_redirected_to 'my/page' + assert_redirected_to '/my/page' user = User.find_by_login('foo') assert user.is_a?(User) @@ -187,7 +187,7 @@ class AccountTest < ActionController::IntegrationTest sid = session[:session_id] post '/login', :username => 'admin', :password => 'admin' - assert_redirected_to 'my/page' + assert_redirected_to '/my/page' assert_not_equal sid, session[:session_id], "login should reset session" assert_equal 1, session[:user_id] sid = session[:session_id] |