mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-25 15:23:06 +00:00
Fix tests to comply with the JSON API spec.
This commit is contained in:
@@ -131,8 +131,9 @@ module ActiveModelSerializers
|
||||
id: '1',
|
||||
type: 'virtual-values',
|
||||
relationships: {
|
||||
maker: { data: { id: 1 } },
|
||||
reviews: { data: [{ id: 1 }, { id: 2 }] }
|
||||
maker: { data: { type: 'makers', id: '1' } },
|
||||
reviews: { data: [{ type: 'reviews', id: '1' },
|
||||
{ type: 'reviews', id: '2' }] }
|
||||
}
|
||||
}
|
||||
}, adapter.serializable_hash)
|
||||
|
||||
Reference in New Issue
Block a user