aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/nested_attributes_test.rb
diff options
context:
space:
mode:
authorJosé Valim <jose.valim@gmail.com>2009-12-31 12:29:44 +0100
committerJosé Valim <jose.valim@gmail.com>2010-01-02 22:27:02 +0100
commitdcafe995bfe51e53dd04607956be9b54073e9cb6 (patch)
treed48929d0bc22d50c90172f1323877bcbfccbadbe /activerecord/test/cases/nested_attributes_test.rb
parentac1df91e5eac4959c0030e2b2ea39968f7f9ba1a (diff)
downloadrails-dcafe995bfe51e53dd04607956be9b54073e9cb6.tar.gz
rails-dcafe995bfe51e53dd04607956be9b54073e9cb6.tar.bz2
rails-dcafe995bfe51e53dd04607956be9b54073e9cb6.zip
Make nested attributes behave like in 2.3.5 and add a sanity test for it with I18n.
Diffstat (limited to 'activerecord/test/cases/nested_attributes_test.rb')
-rw-r--r--activerecord/test/cases/nested_attributes_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/cases/nested_attributes_test.rb b/activerecord/test/cases/nested_attributes_test.rb
index 60c5bad225..8891282915 100644
--- a/activerecord/test/cases/nested_attributes_test.rb
+++ b/activerecord/test/cases/nested_attributes_test.rb
@@ -592,7 +592,7 @@ module NestedAttributesOnACollectionAssociationTests
assert_no_difference ['Man.count', 'Interest.count'] do
man = Man.create(:name => 'John',
:interests_attributes => [{:topic=>'Cars'}, {:topic=>'Sports'}])
- assert !man.errors[:interests_man].empty?
+ assert !man.errors[:"interests.man"].empty?
end
end
# restore :inverse_of