You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 22, 2025. It is now read-only.
Copy file name to clipboardExpand all lines: spec/requests/ai_helper/assistant_controller_spec.rb
+18-2Lines changed: 18 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -186,7 +186,15 @@
186
186
187
187
context"when suggesting titles with a topic_id"do
188
188
let(:title_suggestions)do
189
-
"<item>What are your favourite fruits?</item><item>Love for fruits</item><item>Fruits are amazing</item><item>Favourite fruit list</item><item>Fruit share topic</item>"
189
+
{
190
+
output: [
191
+
"What are your favourite fruits?",
192
+
"Love for fruits",
193
+
"Fruits are amazing",
194
+
"Favourite fruit list",
195
+
"Fruit share topic",
196
+
],
197
+
}
190
198
end
191
199
let(:title_suggestions_array)do
192
200
[
@@ -210,7 +218,15 @@
210
218
211
219
context"when suggesting titles with input text"do
212
220
let(:title_suggestions)do
213
-
"<item>Apples - the best fruit</item><item>Why apples are great</item><item>Apples are the best fruit</item><item>My love for apples</item><item>I love apples</item>"
0 commit comments