Closed
Description
FastJsonapi serializer returns keys as symbols with MySerializer.new(data).serializable_hash
, including :attributes
. It's pretty unobvious that you can say expect(data).to have_jsonapi_attributes(:foo, :bar)
but your data
object should be { 'attributes' => { foo: 1, bar: 2 } }
with "attribute" key being precisely a string.