From 094a2c80afb63a8a4209190ae1337e7a1174919f Mon Sep 17 00:00:00 2001 From: Krzysztof Kotlarek Date: Thu, 14 Dec 2023 14:08:22 +1100 Subject: [PATCH] DEV: Replace deprecated min_trust_to_create_post (#93) 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/plugin_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/plugin_spec.rb b/spec/plugin_spec.rb index c816b00..719910f 100644 --- a/spec/plugin_spec.rb +++ b/spec/plugin_spec.rb @@ -3,7 +3,7 @@ require "rails_helper" describe DiscourseAlgolia do - fab!(:user) { Fabricate(:user) } + fab!(:user) { Fabricate(:user, refresh_auto_groups: true) } fab!(:admin) { Fabricate(:admin) } fab!(:post) { Fabricate(:post, post_number: 1) } fab!(:post_2) { Fabricate(:post, topic: post.topic, post_number: 2) }