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.
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.