Skip to content
This repository was archived by the owner on Jul 22, 2025. It is now read-only.

Commit eb93e17

Browse files
committed
Final spec fix 🤞
1 parent cc34882 commit eb93e17

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

‎spec/configuration/llm_validator_spec.rb‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
describe DiscourseAi::Configuration::LlmValidator do
66
describe "#valid_value?" do
77
let(:validator) { described_class.new(name: :ai_default_llm_model) }
8+
fab!(:llm_model)
89

910
before do
1011
assign_fake_provider_to(:ai_default_llm_model)
@@ -34,7 +35,10 @@
3435
it "returns true for non-empty values regardless of module state" do
3536
SiteSetting.ai_helper_enabled = true
3637
SiteSetting.ai_summarization_enabled = true
37-
expect(validator.valid_value?("some_model")).to eq(true)
38+
39+
DiscourseAi::Completions::Llm.with_prepared_responses([true]) do
40+
expect(validator.valid_value?(llm_model)).to eq(true)
41+
end
3842
end
3943
end
4044
end

0 commit comments

Comments
 (0)