mirror of
https://gh.wpcy.net/https://github.com/discourse/discourse.git
synced 2026-06-19 04:03:45 +08:00
20 lines
560 B
Ruby
Vendored
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
|