discourse-ai/spec/lib/personas/settings_explorer_spec.rb
Jarek Radosz f231aad8b5
DEV: Disable the plugin by default (#1511)
…and preserve the current setting on existing sites
2025-07-22 11:05:52 +01:00

21 lines
552 B
Ruby

# frozen_string_literal: true
RSpec.describe DiscourseAi::Personas::SettingsExplorer do
let(:settings_explorer) { subject }
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_personas")
expect(prompt).to include("site_description")
expect(settings_explorer.tools).to eq(
[DiscourseAi::Personas::Tools::SettingContext, DiscourseAi::Personas::Tools::SearchSettings],
)
end
end