aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/associations_test.rb
diff options
context:
space:
mode:
Diffstat (limited to 'activerecord/test/associations_test.rb')
-rwxr-xr-xactiverecord/test/associations_test.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/activerecord/test/associations_test.rb b/activerecord/test/associations_test.rb
index 2e69ad8ac2..af4251284d 100755
--- a/activerecord/test/associations_test.rb
+++ b/activerecord/test/associations_test.rb
@@ -425,6 +425,7 @@ class HasManyAssociationsTest < Test::Unit::TestCase
firm = Firm.find(1)
assert !(firm.clients_of_firm << c = Client.new)
assert c.new_record?
+ assert !firm.valid?
assert !firm.save
assert c.new_record?
end
@@ -436,7 +437,7 @@ class HasManyAssociationsTest < Test::Unit::TestCase
new_firm.clients_of_firm.concat([c = Client.new, Client.new("name" => "Apple")])
assert c.new_record?
assert !c.valid?
- assert new_firm.valid?
+ assert !new_firm.valid?
assert !new_firm.save
assert c.new_record?
assert new_firm.new_record?