mirror of
https://github.com/discourse/discourse.git
synced 2025-06-04 23:08:15 +08:00
DEV: Use Discourse::SYSTEM_USER_ID in fixtures/009_users (#24743)
I couldn't find where we created the system user and this is why -- everywhere else in the app we reference SYSTEM_USER_ID but here.
This commit is contained in:
@ -1931,7 +1931,7 @@ RSpec.describe GroupsController do
|
||||
end
|
||||
|
||||
it "returns skipped_usernames response body when removing a valid user but is not a member of that group" do
|
||||
delete "/groups/#{group.id}/members.json", params: { user_id: -1 }
|
||||
delete "/groups/#{group.id}/members.json", params: { user_id: Discourse::SYSTEM_USER_ID }
|
||||
|
||||
response_body = response.parsed_body
|
||||
expect(response.status).to eq(200)
|
||||
|
Reference in New Issue
Block a user