Fix passing a wrong parameter to assert_select in API test for 'GET /users/:id' (#34492).

Patch by Go MAEDA.


git-svn-id: http://svn.redmine.org/redmine/trunk@20700 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Go MAEDA
2020-12-31 00:44:39 +00:00
parent d504120cf4
commit 2ee2b34987

View File

@@ -158,7 +158,7 @@ class Redmine::ApiTest::UsersTest < Redmine::ApiTest::Base
test "GET /users/:id should return status for administrators" do
get '/users/2.xml', :headers => credentials('admin')
assert_response :success
assert_select 'user status', :text => User.find(1).status.to_s
assert_select 'user status', :text => User.find(2).status.to_s
end
test "GET /users/:id should return admin status for current user" do