diff options
author | Michael Koziarski <michael@koziarski.com> | 2008-04-11 16:04:11 +1200 |
---|---|---|
committer | Michael Koziarski <michael@koziarski.com> | 2008-04-11 16:04:11 +1200 |
commit | 2e74177d0b61f872b773285471ff9025f0eaa96c (patch) | |
tree | fd87aba4296290394e536ee0549aa33d8a19fe78 /activerecord/test | |
parent | ed99dda174da439a0947cdabea3babf027c672ac (diff) | |
download | rails-2e74177d0b61f872b773285471ff9025f0eaa96c.tar.gz rails-2e74177d0b61f872b773285471ff9025f0eaa96c.tar.bz2 rails-2e74177d0b61f872b773285471ff9025f0eaa96c.zip |
Revert "Ensure that save on child object fails for invalid belongs_to association. Closes #11555. [rubyruy]"
This reverts commit c67e985994362290308073ed2793dd8e7f2a76db.
Diffstat (limited to 'activerecord/test')
-rw-r--r-- | activerecord/test/cases/associations/belongs_to_associations_test.rb | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/activerecord/test/cases/associations/belongs_to_associations_test.rb b/activerecord/test/cases/associations/belongs_to_associations_test.rb index 75f236aca0..b8ec9117af 100644 --- a/activerecord/test/cases/associations/belongs_to_associations_test.rb +++ b/activerecord/test/cases/associations/belongs_to_associations_test.rb @@ -377,16 +377,4 @@ class BelongsToAssociationsTest < ActiveRecord::TestCase assert companies(:first_client).readonly_firm.readonly? end - def test_save_fails_for_invalid_belongs_to - log = AuditLog.new - assert log.valid? - - log.build_developer # Build invalid association - assert !log.developer.valid? - assert !log.valid? - assert_equal "is invalid", log.errors.on("developer") - - assert !log.save - end - end |