diff --git a/test/adapter/json_api/has_many_explicit_serializer_test.rb b/test/adapter/json_api/has_many_explicit_serializer_test.rb index 29e73c4a..8d21b3fd 100644 --- a/test/adapter/json_api/has_many_explicit_serializer_test.rb +++ b/test/adapter/json_api/has_many_explicit_serializer_test.rb @@ -34,8 +34,9 @@ module ActiveModel end def test_includes_linked_comments - assert_equal([{ id: '1', body: "ZOMG A COMMENT", links: { post: @post.id.to_s, author: nil }}, - { id: '2', body: "ZOMG ANOTHER COMMENT", links: { post: @post.id.to_s, author: nil }}], + # If CommentPreviewSerializer is applied correctly the body text will not be present in the output + assert_equal([{ id: '1', links: { post: @post.id.to_s}}, + { id: '2', links: { post: @post.id.to_s}}], @adapter.serializable_hash[:linked][:comments]) end