module ActiveModel::Lint::Tests

def test_errors_aref

locale. If no error is present, the method should return an empty array.
If localization is used, the strings should be localized for the current
an array of strings that are the errors for the attribute in question.
for a given attribute. If errors are present, the method should return
errors[attribute] is used to retrieve the errors of a model

Fails otherwise.
[](attribute) on the result of this method returns an array.
Passes if the object's model responds to errors and if calling
def test_errors_aref
  assert_respond_to model, :errors
  assert_equal [], model.errors[:hello], "errors#[] should return an empty Array"
end