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
This commit is contained in:
@@ -68,7 +68,7 @@ class MyControllerTest < ActionController::TestCase
|
||||
:login => "root",
|
||||
:admin => 1,
|
||||
:custom_field_values => {"4" => "0100562500"}}
|
||||
assert_redirected_to 'my/account'
|
||||
assert_redirected_to '/my/account'
|
||||
user = User.find(2)
|
||||
assert_equal user, assigns(:user)
|
||||
assert_equal "Joe", user.firstname
|
||||
@@ -102,7 +102,7 @@ class MyControllerTest < ActionController::TestCase
|
||||
post :password, :password => 'jsmith',
|
||||
:new_password => 'hello',
|
||||
:new_password_confirmation => 'hello'
|
||||
assert_redirected_to 'my/account'
|
||||
assert_redirected_to '/my/account'
|
||||
assert User.try_to_login('jsmith', 'hello')
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user