instance method
test_errors_full_messages
Ruby on Rails 3.2.22.5
Since v3.0.20 Last seen in v3.2.22.5Signature
test_errors_full_messages()
Returns an Array of all error messages for the object. Each message should contain information about the field, if applicable.
Source
# File activemodel/lib/active_model/lint.rb, line 107
def test_errors_full_messages
assert model.respond_to?(:errors), "The model should respond to errors"
assert model.errors.full_messages.is_a?(Array), "errors#full_messages should return an Array"
end
Defined in activemodel/lib/active_model/lint.rb line 107
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveModel::Lint::Tests