DEV: Remove remaining hardcoded ids (#18735)

This commit is contained in:
Jarek Radosz
2022-10-25 09:29:09 +02:00
committed by GitHub
parent d85c89ba6d
commit df56ab172a
15 changed files with 60 additions and 56 deletions

View File

@@ -2801,7 +2801,7 @@ RSpec.describe Topic do
end
describe '#pm_with_non_human_user?' do
fab!(:robot) { Fabricate(:user, id: -3) }
fab!(:robot) { Fabricate(:bot) }
fab!(:topic) do
topic = Fabricate(:private_message_topic,

View File

@@ -1992,7 +1992,7 @@ RSpec.describe User do
describe '.human_users' do
it 'should only return users with a positive primary key' do
Fabricate(:user, id: -1979)
Fabricate(:bot)
user = Fabricate(:user)
expect(User.human_users).to eq([user])