aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel/test/cases/errors_test.rb
Commit message (Collapse)AuthorAgeFilesLines
* New #added? method on ActiveModel::ErrorsMartin Svalin2011-10-191-0/+43
| | | The #added? method makes it possible to check if a specific error has been added, using the same parameters as for #add.
* ActiveModel::Errors#generate_message without i18n_scope, and more test cases ↵Martin Svalin2011-10-171-0/+21
| | | | for #add
* Added test for obj.errors.as_jsonLawrence Pit2011-09-091-0/+11
|
* Add ability to get an individual full error message + test for full_messages.Lawrence Pit2011-09-091-2/+18
|
* add has_key? to ActiveModel::ErrorsDamien Mathieu2011-09-061-0/+6
|
* Handle the empty array correctly.thedarkone2011-07-271-0/+1
|
* implementing include? on AM::ErrorsAaron Patterson2011-02-091-0/+6
|
* fix difference between behaviour of blank and emptyHemant Kumar2011-01-051-0/+6
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* ActiveModel::Errors.to_hash returns plain OrderedHash and used in to_json ↵Thilo Utke2010-12-011-0/+5
| | | | | | serialization to properly handle multiple errors per attribute [#5615 state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com>
* Revert "Fix generation of wrong json string when field has multiple errors"José Valim2010-12-011-10/+0
| | | | This reverts commit a9b666b51d28b2e74da630c31327dee7cbe96d37.
* Fix generation of wrong json string when field has multiple errorsKrekoten' Marjan2010-12-011-0/+10
|
* adding test cases for ActiveModel::ErrorsNeeraj Singh2010-08-031-0/+65
Signed-off-by: José Valim <jose.valim@gmail.com>