Skip to content
Browse files

renaming test name to fix accidently override

[#5076 state:resolved]

Signed-off-by: José Valim <jose.valim@gmail.com>
  • Loading branch information...
1 parent 571cb1d commit 44e7fba59e251c1eb12d8f793a643b5804cb3977 @subbarao subbarao committed with josevalim Jul 9, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 activerecord/test/cases/associations/has_many_associations_test.rb
View
2 activerecord/test/cases/associations/has_many_associations_test.rb
@@ -549,7 +549,7 @@ def test_find_or_initialize
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

0 comments on commit 44e7fba

Please sign in to comment.
Something went wrong with that request. Please try again.