jsonapi-rb / jsonapi-rspec

RSpec matchers for JSON:API spec
https://rubygems.org/gems/jsonapi-rspec
MIT License
123 stars 24 forks source link

`have_type` fails when `type` is a symbol #29

Closed DEfusion closed 3 years ago

DEfusion commented 3 years ago

I'm speccing some serializers before switching out an old version of the Netflix fast JSON api serializer, and it returns the type as a symbol in the hash if that's how you define it. This is failing due to have_type coercing the expected to a string.