spec/serializer_spec.rb in jsonapi-serializers-0.16.0 vs spec/serializer_spec.rb in jsonapi-serializers-0.16.1

- old
+ new

@@ -884,10 +884,10 @@ first_comment = create(:long_comment, user: first_user) second_comment = create(:long_comment, user: second_user) long_comments = [first_comment, second_comment] post = create(:post, :with_author, long_comments: long_comments) - fields = {posts: 'title,author,long_comments'} + fields = {posts: 'title,author,long-comments'} serialized_data = JSONAPI::Serializer.serialize(post, fields: fields) expect(serialized_data['data']['relationships']).to eq ({ 'author' => { 'links' => { 'self' => '/posts/1/relationships/author',