DEV: Replace deprecated min_trust_to_create_post (#272)

In https://github.com/discourse/discourse/pull/24740, `min_trust_to_create_topic` site setting was replaced by `create_topic_allowed_groups`. This PR replaces the former, deprecated one, with the latter.
This commit is contained in:
Krzysztof Kotlarek 2023-12-14 13:28:50 +11:00 committed by GitHub
parent 3d3f20b68d
commit 5c84152b06
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -3,7 +3,7 @@
require "rails_helper"
describe FirstAcceptedPostSolutionValidator do
fab!(:user_tl1) { Fabricate(:user, trust_level: TrustLevel[1]) }
fab!(:user_tl1) { Fabricate(:user, trust_level: TrustLevel[1], refresh_auto_groups: true) }
context "when user is under max trust level" do
context "with no post accepted yet" do