Hello!
Sometimes, especially on CI, some model is invalid and I get output like this:
Failure/Error: create(:invalid_user)
ActiveRecord::RecordInvalid: Record invalid
``
Now, I know I can access the error’s record
object and inspect it’s errors, but obviously a remote test run does not offer such interactivity.
Why not print the validation errors in error message?
That way we’d get something like ‘email: [“Taken”]’ instead of the redundant “Record invalid”.