test/unit/serializer/polymorphic_serializer_test.rb in jsonapi-resources-0.5.9 vs test/unit/serializer/polymorphic_serializer_test.rb in jsonapi-resources-0.6.0

- old
+ new

@@ -25,11 +25,11 @@ def test_sti_polymorphic_to_many_serialization serialized_data = JSONAPI::ResourceSerializer.new( PersonResource, include: %w(vehicles) - ).serialize_to_hash(PersonResource.new(@person)) + ).serialize_to_hash(PersonResource.new(@person, nil)) assert_hash_equals( { data: { id: '1', @@ -130,10 +130,10 @@ def test_polymorphic_to_one_serialization serialized_data = JSONAPI::ResourceSerializer.new( PictureResource, include: %w(imageable) - ).serialize_to_hash(@pictures.map { |p| PictureResource.new p }) + ).serialize_to_hash(@pictures.map { |p| PictureResource.new p, nil }) assert_hash_equals( { data: [ {