aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test
diff options
context:
space:
mode:
authorJeremy Kemper <jeremy@bitsweat.net>2008-04-10 22:16:08 -0700
committerJeremy Kemper <jeremy@bitsweat.net>2008-04-10 22:16:08 -0700
commitf46fd6f2fceb22f00669f066fc98f92a18e5875f (patch)
tree92abc56f27ff5c25639e9cd34bb2ff1411bee7a9 /activerecord/test
parent4b17082107aced980fc4b511028ee763247bc5ab (diff)
parent2e74177d0b61f872b773285471ff9025f0eaa96c (diff)
downloadrails-f46fd6f2fceb22f00669f066fc98f92a18e5875f.tar.gz
rails-f46fd6f2fceb22f00669f066fc98f92a18e5875f.tar.bz2
rails-f46fd6f2fceb22f00669f066fc98f92a18e5875f.zip
Merge branch 'master' of git@github.com:rails/rails
Diffstat (limited to 'activerecord/test')
-rw-r--r--activerecord/test/cases/associations/belongs_to_associations_test.rb12
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