Can you specify which error message that you get when using assert_response? I have a series of validations that all trigger 422 errors and I'm currently testing that they trigger using
assert_response(422)
Is it possible to be more specific and test which 422 I produced?
Aucun commentaire:
Enregistrer un commentaire