Permalink
Browse files

Test with the right association

  • Loading branch information...
1 parent 9616a7e commit a221b30b3fb309f1edfa0c330fd57c1efaadd509 @rafaelfranca rafaelfranca committed Nov 1, 2013
Showing with 3 additions and 3 deletions.
  1. +3 −3 activerecord/test/cases/associations/has_many_associations_test.rb
@@ -782,12 +782,12 @@ def test_deleting_a_collection
def test_delete_all
force_signal37_to_load_all_clients_of_firm
- companies(:first_firm).clients_of_firm.create("name" => "Another Client")
- clients = companies(:first_firm).clients_of_firm.to_a
+ companies(:first_firm).dependent_clients_of_firm.create("name" => "Another Client")
+ clients = companies(:first_firm).dependent_clients_of_firm.to_a
assert_equal 2, clients.count
assert_difference "Client.count", -(clients.count) do
- companies(:first_firm).clients_of_firm.delete_all
+ companies(:first_firm).dependent_clients_of_firm.delete_all
end
end

0 comments on commit a221b30

Please sign in to comment.