Skip to content

Commit 231054f

Browse files
authored
Fix full remote resource testing example
Was mocking an invalid jsonapi payload
1 parent 015f612 commit 231054f

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

guides/concepts/remote-resources.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -307,9 +307,11 @@ describe 'sideloading' do
307307

308308
let(:api_response) do
309309
{
310-
id: '789',
311-
type: 'comments',
312-
attributes: { body: 'hello' }
310+
data: [{
311+
id: '789',
312+
type: 'comments',
313+
attributes: { body: 'hello' }
314+
}]
313315
}
314316
end
315317

0 commit comments

Comments
 (0)