mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-22 22:06:50 +00:00
Fix deprecation warning
Fix the "Calling deprecated ArraySerializer... Please use CollectionSerializer" warning that appeared when running the specs. This happened because on of the test called ArraySerializer instead of CollectionSerializer.
This commit is contained in:
parent
a6c6979e08
commit
c2eace3468
@ -37,7 +37,7 @@ module ActiveModel
|
||||
|
||||
def test_relationship_with_data_array
|
||||
posts = [Post.new(id: 1), Post.new(id: 2)]
|
||||
@serializer = ActiveModel::Serializer::ArraySerializer.new(posts)
|
||||
@serializer = ActiveModel::Serializer::CollectionSerializer.new(posts)
|
||||
@author.posts = posts
|
||||
@author.blog = nil
|
||||
expected = {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user