From 36f84c17ae248de05c49653e4754ec5139c9e2b8 Mon Sep 17 00:00:00 2001 From: Subba Rao Pasupuleti Date: Fri, 9 Jul 2010 04:01:58 -0400 Subject: [PATCH] renaming test name to fix accidently override --- .../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 a52cedd..f144080 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 -- 1.7.0.4