aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/associations/has_many_associations_test.rb
diff options
context:
space:
mode:
authorSubba Rao Pasupuleti <subbarao.pasupuleti@gmail.com>2010-07-09 04:01:58 -0400
committerJosé Valim <jose.valim@gmail.com>2010-07-13 08:09:57 +0200
commit44e7fba59e251c1eb12d8f793a643b5804cb3977 (patch)
tree6ecb0f2044ddad5e8dc412b90c4e47878d2c24d9 /activerecord/test/cases/associations/has_many_associations_test.rb
parent571cb1ddc6692ed96e04a14e670beb01ba8c93ca (diff)
downloadrails-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/test/cases/associations/has_many_associations_test.rb')
-rw-r--r--activerecord/test/cases/associations/has_many_associations_test.rb2
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