aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/validations
Commit message (Collapse)AuthorAgeFilesLines
...
* Added a uniqueness validation test that uses diacritics.Hugo Peixoto2009-08-091-2/+2
| | | | | | [#2883 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Add test to verify that the new :inverse_of association option will indeed ↵Wolfram Arnold2009-08-081-0/+23
| | | | | | | | fix the validation problem for a belongs_to relationship that validates_presence_of the parent, when both the parent and the child are new (in-memory) records. Also check that this works when the parents adds child via nested_attributes_for. Lastly, add a require 'models/pet' to association_validation_test.rb, so that test can be run independently (was failing due to that missing dependency). [#2815 status:resolved] Signed-off-by: José Valim <jose.valim@gmail.com>
* Merge branch 'master' into active_modelJoshua Peek2009-05-291-3/+12
| | | | | | | | | | | Conflicts: activemodel/lib/active_model/core.rb activemodel/test/cases/state_machine/event_test.rb activemodel/test/cases/state_machine/state_transition_test.rb activerecord/lib/active_record/validations.rb activerecord/test/cases/validations/i18n_validation_test.rb activeresource/lib/active_resource.rb activeresource/test/abstract_unit.rb
* Add I18n translations to ActiveModel and move more AR specific parts to ↵Pratik Naik2009-03-202-0/+742
| | | | ActiveRecord::Validations
* Deprecate Error#on(attribute) in favour of Errors#[attribute]Pratik Naik2009-03-202-5/+5
|
* Move relevant validation tests from Active Record to Active ModelPratik Naik2009-03-204-0/+505