diff options
author | José Valim <jose.valim@gmail.com> | 2009-12-31 12:29:44 +0100 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2010-01-02 22:27:02 +0100 |
commit | dcafe995bfe51e53dd04607956be9b54073e9cb6 (patch) | |
tree | d48929d0bc22d50c90172f1323877bcbfccbadbe /activerecord/test/cases/nested_attributes_test.rb | |
parent | ac1df91e5eac4959c0030e2b2ea39968f7f9ba1a (diff) | |
download | rails-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.rb | 2 |
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 |