mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-22 22:06:50 +00:00
Dont use Class.embed on test
This commit is contained in:
parent
05ec509e1c
commit
55baaf2005
@ -84,7 +84,9 @@ module ActiveModel
|
||||
end
|
||||
|
||||
def test_associations_embedding_ids_including_objects_serialization_using_as_json
|
||||
PostSerializer.embed :ids, include: true
|
||||
CONFIG.embed = :ids
|
||||
CONFIG.include = true
|
||||
|
||||
PostSerializer._associations[:comments].send :initialize, @association.name, @association.options
|
||||
|
||||
@post_serializer.root = nil
|
||||
|
||||
Loading…
Reference in New Issue
Block a user