parent
4368ef29d8
commit
5a78b6a953
|
@ -15,7 +15,8 @@ describe DiscourseAi::ChatMessageClassificator do
|
||||||
it "stores the model classification data" do
|
it "stores the model classification data" do
|
||||||
classification.classify!(chat_message)
|
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
|
classification = result.classification.symbolize_keys
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue