khamusa / rspec-graphql_matchers

Collection of rspec matchers to test your graphQL api schema.
MIT License
145 stars 49 forks source link

add support for `with_deprecation_reason` #13

Closed Pallinder closed 5 years ago

Pallinder commented 7 years ago

Background

Sometimes fields on a type are set to deprecated. This is done via the deprecation_reason method.

Issue

Currently there is no way to test if a field has been deprecated or not. Would be awesome if we could do expect(a_type).to have_a_field(:id).with_deprecation_reason('whatever') to test these cases.

khamusa commented 5 years ago

@Pallinder on the latest master branch it should be fairly trivial to implement this. Let me know if you'd like to give it a try.

khamusa commented 5 years ago

Closing for inactivity, let me know if you want to get back to this.