Use symbol for root in jsonapi, fix tests

This commit is contained in:
Mateo Murphy
2015-03-19 14:14:27 -04:00
parent 3ba4386bda
commit da86747a3e
11 changed files with 21 additions and 21 deletions

View File

@@ -185,7 +185,7 @@ module ActiveModel
spammy_post.related = [Spam::UnrelatedLink.new(id: 456)]
serializer = SpammyPostSerializer.new(spammy_post)
adapter = ActiveModel::Serializer::Adapter::JsonApi.new(serializer)
links = adapter.serializable_hash[:posts][:links]
links = adapter.serializable_hash[:data][:links]
expected = {
related: {
type: 'unrelated_links',