Leading slash required with Rails 4.2.

git-svn-id: http://svn.redmine.org/redmine/trunk@13783 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2014-12-21 15:05:18 +00:00
parent 7ac9072270
commit 7296b569a3
6 changed files with 33 additions and 33 deletions

View File

@@ -45,7 +45,7 @@ class AdminTest < Redmine::IntegrationTest
assert_kind_of User, logged_user
assert_equal "Paul", logged_user.firstname
put "users/#{user.id}", :id => user.id, :user => { :status => User::STATUS_LOCKED }
put "/users/#{user.id}", :id => user.id, :user => { :status => User::STATUS_LOCKED }
assert_redirected_to "/users/#{ user.id }/edit"
locked_user = User.try_to_login("psmith", "psmith09")
assert_equal nil, locked_user