DEV: Make all admins TL4 in tests (#25435)

Make admins TL4 by default in tests, foregoing the need to call refresh_auto_groups on them.
This commit is contained in:
Ted Johansson
2024-03-26 11:41:12 +08:00
committed by GitHub
parent d9179468e4
commit 5ee23fc394
17 changed files with 17 additions and 18 deletions

View File

@ -3,7 +3,7 @@
RSpec.describe TopicCreator do
fab!(:user) { Fabricate(:user, trust_level: TrustLevel[2]) }
fab!(:moderator)
fab!(:admin) { Fabricate(:admin, refresh_auto_groups: true) }
fab!(:admin)
let(:valid_attrs) { Fabricate.attributes_for(:topic) }
let(:pm_valid_attrs) do