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:
Yohan Robert 2016-02-19 10:13:54 +01:00
parent a6c6979e08
commit c2eace3468

View File

@ -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 = {