Skip to content

Commit ffc15d2

Browse files
committed
Improve string literal identation
1 parent 307c268 commit ffc15d2

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

spec/meilisearch/index/documents_spec.rb

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -37,28 +37,28 @@
3737
end
3838

3939
it 'adds JSON documents (as a array of documents)' do
40-
documents = <<JSON
41-
[
42-
{ "objectRef": 123, "title": "Pride and Prejudice", "comment": "A great book" },
43-
{ "objectRef": 456, "title": "Le Petit Prince", "comment": "A french book" },
44-
{ "objectRef": 1, "title": "Alice In Wonderland", "comment": "A weird book" },
45-
{ "objectRef": 1344, "title": "The Hobbit", "comment": "An awesome book" },
46-
{ "objectRef": 4, "title": "Harry Potter and the Half-Blood Prince", "comment": "The best book" }
47-
]
48-
JSON
40+
documents = <<~JSON
41+
[
42+
{ "objectRef": 123, "title": "Pride and Prejudice", "comment": "A great book" },
43+
{ "objectRef": 456, "title": "Le Petit Prince", "comment": "A french book" },
44+
{ "objectRef": 1, "title": "Alice In Wonderland", "comment": "A weird book" },
45+
{ "objectRef": 1344, "title": "The Hobbit", "comment": "An awesome book" },
46+
{ "objectRef": 4, "title": "Harry Potter and the Half-Blood Prince", "comment": "The best book" }
47+
]
48+
JSON
4949
response = index.add_documents_json(documents, 'objectRef')
5050

5151
index.wait_for_task(response['taskUid'])
5252
expect(index.documents['results'].count).to eq(5)
5353
end
5454

5555
it 'adds NDJSON documents (as a array of documents)' do
56-
documents = <<NDJSON
57-
{ "objectRef": 123, "title": "Pride and Prejudice", "comment": "A great book" }
58-
{ "objectRef": 456, "title": "Le Petit Prince", "comment": "A french book" }
59-
{ "objectRef": 1, "title": "Alice In Wonderland", "comment": "A weird book" }
60-
{ "objectRef": 4, "title": "Harry Potter and the Half-Blood Prince", "comment": "The best book" }
61-
NDJSON
56+
documents = <<~NDJSON
57+
{ "objectRef": 123, "title": "Pride and Prejudice", "comment": "A great book" }
58+
{ "objectRef": 456, "title": "Le Petit Prince", "comment": "A french book" }
59+
{ "objectRef": 1, "title": "Alice In Wonderland", "comment": "A weird book" }
60+
{ "objectRef": 4, "title": "Harry Potter and the Half-Blood Prince", "comment": "The best book" }
61+
NDJSON
6262
response = index.add_documents_ndjson(documents, 'objectRef')
6363

6464
index.wait_for_task(response['taskUid'])

0 commit comments

Comments
 (0)