Add tests for the Conversation object

This commit is contained in:
Stanko K.R.
2025-08-06 17:09:43 +02:00
parent e49c7cb1cb
commit 09739fdba4
5 changed files with 99 additions and 21 deletions
+8
View File
@@ -13,4 +13,12 @@ layout_overflowing_david:
name: body
body: The text is overflowing the container.
kevins_conversation_question:
record: kevin_question (Conversation::Message)
name: content
body: "Who is on a hot-streak?"
kevins_conversation_answer:
record: kevin_answer (Conversation::Message)
name: content
body: "<b>David</b> is on a hot-streak. He has recently added many cards to Writebook."
+13 -8
View File
@@ -1,9 +1,14 @@
# Read about fixtures at https://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
kevin_question:
conversation: kevin
role: user
client_message_id: djtawmq4vnp9f8es
model_id: "gpt-4.1-2025-04-14"
input_tokens: 3765
output_tokens: 331
input_cost_microcents: 753
output_cost_microcents: 300
one:
conversation: one
role: MyString
two:
conversation: two
role: MyString
kevin_answer:
conversation: kevin
role: assistant
client_message_id: rhwno26j4o
+3 -7
View File
@@ -1,7 +1,3 @@
# Read about fixtures at https://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
one:
user: one
two:
user: two
kevin:
user: kevin
state: ready