From 5c84152b060e0c793e6e6c4ae9b185e1f2e40f39 Mon Sep 17 00:00:00 2001 From: Krzysztof Kotlarek Date: Thu, 14 Dec 2023 13:28:50 +1100 Subject: [PATCH] DEV: Replace deprecated min_trust_to_create_post (#272) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- spec/lib/first_accepted_post_solution_validator_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/lib/first_accepted_post_solution_validator_spec.rb b/spec/lib/first_accepted_post_solution_validator_spec.rb index 1bb153a..6190764 100644 --- a/spec/lib/first_accepted_post_solution_validator_spec.rb +++ b/spec/lib/first_accepted_post_solution_validator_spec.rb @@ -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