mirror of
https://github.com/redmine/redmine.git
synced 2025-11-08 22:36:02 +01:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user