Skip to content

Commit

Permalink
DEV: update spec
Browse files Browse the repository at this point in the history
  • Loading branch information
keegangeorge committed Dec 21, 2024
1 parent 4ba9167 commit 2c40fa5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/requests/admin/ai_spam_controller_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@

it "correctly filters seeded llms" do
SiteSetting.ai_spam_detection_enabled = true
seeded_llm = Fabricate(:llm_model, id: -1, name: "seeded")
seeded_llm = Fabricate(:seeded_model)

get "/admin/plugins/discourse-ai/ai-spam.json"
expect(response.status).to eq(200)
Expand All @@ -202,7 +202,7 @@
# only includes fabricated model
expect(json["available_llms"].length).to eq(1)

SiteSetting.ai_spam_detection_model_allowed_seeded_models = seeded_llm.identifier
SiteSetting.ai_spam_detection_model_allowed_seeded_models = [seeded_llm.id.to_s]

get "/admin/plugins/discourse-ai/ai-spam.json"
expect(response.status).to eq(200)
Expand Down

0 comments on commit 2c40fa5

Please sign in to comment.