Merge pull request #1525 from groyoh/remove_warning_message

Fix deprecation warning
This commit is contained in:
Benjamin Fleischer 2016-02-19 09:15:42 -06:00
commit f02f0849b1

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