summaryrefslogtreecommitdiffstats
path: root/test/integration/api_test
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2020-12-31 00:44:39 +0000
committerGo MAEDA <maeda@farend.jp>2020-12-31 00:44:39 +0000
commit2ee2b349879a0816fc49700fade0be1750a6fa87 (patch)
tree29e4154cc2c362af351b992fd692b992a23e9ec2 /test/integration/api_test
parentd504120cf42cbe2f0d0f18bd7e9c66ba05f64013 (diff)
downloadredmine-2ee2b349879a0816fc49700fade0be1750a6fa87.tar.gz
redmine-2ee2b349879a0816fc49700fade0be1750a6fa87.zip
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
Diffstat (limited to 'test/integration/api_test')
-rw-r--r--test/integration/api_test/users_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/integration/api_test/users_test.rb b/test/integration/api_test/users_test.rb
index d54701ad5..bd58a39f2 100644
--- a/test/integration/api_test/users_test.rb
+++ b/test/integration/api_test/users_test.rb
@@ -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