diff options
Diffstat (limited to 'activerecord/test/cases/associations')
-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 |