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

Commit 07b7e0f

Browse files
committed
fix tests
1 parent b378ea6 commit 07b7e0f

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

spec/jobs/scheduled/summaries_backfill_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@
8787
gist_2 = "Gist of topic"
8888

8989
DiscourseAi::Completions::Llm.with_prepared_responses(
90-
[summary_1, summary_2, gist_1, gist_2],
90+
[gist_1, gist_2, summary_1, summary_2],
9191
) { subject.execute({}) }
9292

9393
expect(AiSummary.complete.find_by(target: topic_2).summarized_text).to eq(summary_1)

spec/lib/modules/summarization/entry_point_spec.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@
4747

4848
describe "topic_list_item serializer's ai_summary" do
4949
context "when hot topic summarization is disabled" do
50+
before { SiteSetting.ai_summary_gists_enabled = false }
5051
it "doesn't include summaries" do
5152
gist_topic = topic_query.list_hot.topics.find { |t| t.id == topic_ai_gist.target_id }
5253

0 commit comments

Comments
 (0)