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:
Martin Brennan
2023-12-07 09:04:45 +10:00
committed by GitHub
parent c197f8c6ee
commit 7afb5fc481
8 changed files with 17 additions and 17 deletions

View File

@ -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)