You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is a lot of tedious work involved when there is a need to test JSON:API endpoints. All endpoints can send successful and unsuccessful responses and in terms of possible errors a lot of repetition is involved.
Suggestion:
Add an RSpec matcher to easily check the error responses, i. e:
There is a lot of tedious work involved when there is a need to test JSON:API endpoints. All endpoints can send successful and unsuccessful responses and in terms of possible errors a lot of repetition is involved.
Suggestion:
Add an
RSpec
matcher to easily check the error responses, i. e:We could add some arguments to it to allow for customization of the expected messages.
The text was updated successfully, but these errors were encountered: