diff options
author | Subba Rao Pasupuleti <subbarao.pasupuleti@gmail.com> | 2010-07-09 04:01:58 -0400 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2010-07-13 08:09:57 +0200 |
commit | 44e7fba59e251c1eb12d8f793a643b5804cb3977 (patch) | |
tree | 6ecb0f2044ddad5e8dc412b90c4e47878d2c24d9 /activerecord | |
parent | 571cb1ddc6692ed96e04a14e670beb01ba8c93ca (diff) | |
download | rails-44e7fba59e251c1eb12d8f793a643b5804cb3977.tar.gz rails-44e7fba59e251c1eb12d8f793a643b5804cb3977.tar.bz2 rails-44e7fba59e251c1eb12d8f793a643b5804cb3977.zip |
renaming test name to fix accidently override
[#5076 state:resolved]
Signed-off-by: José Valim <jose.valim@gmail.com>
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/test/cases/associations/has_many_associations_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/cases/associations/has_many_associations_test.rb b/activerecord/test/cases/associations/has_many_associations_test.rb index a52cedd8c2..f1440804d2 100644 --- a/activerecord/test/cases/associations/has_many_associations_test.rb +++ b/activerecord/test/cases/associations/has_many_associations_test.rb @@ -549,7 +549,7 @@ class HasManyAssociationsTest < ActiveRecord::TestCase assert the_client.new_record? end - def test_find_or_create + def test_find_or_create_updates_size number_of_clients = companies(:first_firm).clients.size the_client = companies(:first_firm).clients.find_or_create_by_name("Yet another client") assert_equal number_of_clients + 1, companies(:first_firm, :reload).clients.size |