diff options
author | José Valim <jose.valim@gmail.com> | 2009-12-31 13:44:15 +0100 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2010-01-02 22:27:02 +0100 |
commit | 5fdd0e80a4db778268e80435b471090cb14f7229 (patch) | |
tree | 3331da25671e00d29ca86d4c24753da6b30031a3 /activerecord/test | |
parent | dcafe995bfe51e53dd04607956be9b54073e9cb6 (diff) | |
download | rails-5fdd0e80a4db778268e80435b471090cb14f7229.tar.gz rails-5fdd0e80a4db778268e80435b471090cb14f7229.tar.bz2 rails-5fdd0e80a4db778268e80435b471090cb14f7229.zip |
Be sure to convert namespaced names to we have 'Parrots name' instead of 'Parrots.name' in error messages.
Diffstat (limited to 'activerecord/test')
-rw-r--r-- | activerecord/test/cases/autosave_association_test.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/activerecord/test/cases/autosave_association_test.rb b/activerecord/test/cases/autosave_association_test.rb index 4e8f954e81..cf763d730a 100644 --- a/activerecord/test/cases/autosave_association_test.rb +++ b/activerecord/test/cases/autosave_association_test.rb @@ -982,6 +982,7 @@ module AutosaveAssociationOnACollectionAssociationTests assert !@pirate.valid? assert_equal ["cannot be blank"], @pirate.errors["#{@association_name}.name"] + assert_equal ["#{@association_name.to_s.titleize} name cannot be blank"], @pirate.errors.full_messages assert @pirate.errors[@association_name].empty? ensure I18n.backend.store_translations(:en, :activerecord => { :errors => { :models => |