mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-25 07:16:49 +00:00
updating tests
This commit is contained in:
committed by
João M. D. Moura
parent
418721302b
commit
9817a5b595
@@ -15,7 +15,7 @@ module ActiveModel
|
||||
serializer = AlternateBlogSerializer.new(@blog, meta: {total: 10})
|
||||
adapter = ActiveModel::Serializer::Adapter::Json.new(serializer)
|
||||
expected = {
|
||||
alternate_blog: {
|
||||
blog: {
|
||||
id: 1,
|
||||
title: "AMS Hints"
|
||||
},
|
||||
@@ -40,7 +40,7 @@ module ActiveModel
|
||||
serializer = AlternateBlogSerializer.new(@blog, meta: {total: 10}, meta_key: "haha_meta")
|
||||
adapter = ActiveModel::Serializer::Adapter::Json.new(serializer)
|
||||
expected = {
|
||||
alternate_blog: {
|
||||
blog: {
|
||||
id: 1,
|
||||
title: "AMS Hints"
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user