Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Test with the right association

  • Loading branch information...
commit a221b30b3fb309f1edfa0c330fd57c1efaadd509 1 parent 9616a7e
@rafaelfranca rafaelfranca authored
View
6 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
Please sign in to comment.
Something went wrong with that request. Please try again.