Ideally this would actually be refactored such that I define a path in each of these, then dispatch to expect(test_path.(serializer.to_media_type)).to eq(descriptor_path.(document))
so that I'm not replicating that line over and over.