A platform for community discussion. Free, open, simple.
DEV: Add a spec to assert flag post tool doesn't require approval (#41783)
Roman Rizzi645ab9503b8f
diff --git a/plugins/discourse-ai/spec/lib/agents/tools/flag_post_spec.rb b/plugins/discourse-ai/spec/lib/agents/tools/flag_post_spec.rbindex b9622e258f4..9402f1ec0c1 100644--- a/plugins/discourse-ai/spec/lib/agents/tools/flag_post_spec.rb+++ b/plugins/discourse-ai/spec/lib/agents/tools/flag_post_spec.rb@@ -1,6 +1,10 @@# frozen_string_literal: trueRSpec.describe DiscourseAi::Agents::Tools::FlagPost do+ it "does not require separate approval before adding a post to the review queue" do+ expect(described_class.requires_approval?).to eq(false)+ end+fab!(:llm_model)let(:bot_user) { DiscourseAi::AiBot::EntryPoint.find_user_from_model(llm_model.name) }let(:llm) { DiscourseAi::Completions::Llm.proxy(llm_model) }