discourse/plugins/discourse-ai/spec/lib/agents/settings_explorer_spec.rb
Sam e3fae646d4
DEV: AI persona to agent migration (#38319)
Co-authored-by: Keegan George <kgeorge13@gmail.com>
2026-03-10 15:59:45 +11:00

20 lines
560 B
Ruby
Vendored

# frozen_string_literal: true
RSpec.describe DiscourseAi::Agents::SettingsExplorer do
subject(:settings_explorer) { described_class.new }
before { enable_current_plugin }
it "renders schema" do
prompt = settings_explorer.system_prompt
# check we do not render plugin settings
expect(prompt).not_to include("ai_bot_enabled_agents")
expect(prompt).to include("site_description")
expect(settings_explorer.tools).to eq(
[DiscourseAi::Agents::Tools::SettingContext, DiscourseAi::Agents::Tools::SearchSettings],
)
end
end