Add tests for the Conversation object
This commit is contained in:
+8
@@ -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
@@ -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
|
||||
|
||||
Vendored
+3
-7
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user