From 5a78b6a953b707eded7fc7e52ac4b424710b84ae Mon Sep 17 00:00:00 2001 From: Rafael dos Santos Silva Date: Tue, 18 Apr 2023 15:43:10 -0300 Subject: [PATCH] DEV: Fix test (#43) * DEV: Fix test * lint --- spec/shared/chat_message_classificator_spec.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/spec/shared/chat_message_classificator_spec.rb b/spec/shared/chat_message_classificator_spec.rb index 8d2bf59f..30a82308 100644 --- a/spec/shared/chat_message_classificator_spec.rb +++ b/spec/shared/chat_message_classificator_spec.rb @@ -15,7 +15,8 @@ describe DiscourseAi::ChatMessageClassificator do it "stores the model classification data" do classification.classify!(chat_message) - result = ClassificationResult.find_by(target: chat_message, classification_type: model.type) + result = + ClassificationResult.find_by(target_id: chat_message.id, classification_type: model.type) classification = result.classification.symbolize_keys