aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/validations/uniqueness_validation_test.rb
diff options
context:
space:
mode:
authorWolfram Arnold <wolfram@rubyfocus.biz>2009-06-29 14:20:15 -0700
committerJosé Valim <jose.valim@gmail.com>2009-08-08 13:07:49 +0200
commit73f2d37505025a446bb5314a090f412d0fceb8ca (patch)
tree1a10c172786305c361b36587d0dcd1b5c6a2259a /activerecord/test/cases/validations/uniqueness_validation_test.rb
parentfbe6c3c19553fd05edc904af62fbfc8aee1d907d (diff)
downloadrails-73f2d37505025a446bb5314a090f412d0fceb8ca.tar.gz
rails-73f2d37505025a446bb5314a090f412d0fceb8ca.tar.bz2
rails-73f2d37505025a446bb5314a090f412d0fceb8ca.zip
Add test to verify that the new :inverse_of association option will indeed 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>
Diffstat (limited to 'activerecord/test/cases/validations/uniqueness_validation_test.rb')
0 files changed, 0 insertions, 0 deletions