Skip to content

Commit

Permalink
Remove duplicated `test_update_all_on_association_accessed_before_sav…
Browse files Browse the repository at this point in the history
…e_with_explicit_foreign_key`

This was caused by #28246.
  • Loading branch information
kamipo committed Apr 21, 2017
1 parent 3e2d642 commit b39f98f
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions activerecord/test/cases/associations/has_many_associations_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -586,20 +586,6 @@ def test_update_all_on_association_accessed_before_save
assert_not_equal clients_proxy_id, firm.clients.object_id
end

def test_update_all_on_association_accessed_before_save_with_explicit_foreign_key
# We can use the same cached proxy object because the id is available for the scope
firm = Firm.new(name: 'Firm', id: 100)
clients_proxy_id = firm.clients.object_id
firm.clients << Client.first
firm.save!
assert_equal firm.clients.count, firm.clients.update_all(description: 'Great!')
assert_equal clients_proxy_id, firm.clients.object_id
firm = Firm.new(name: "Firm")
firm.clients << Client.first
firm.save!
assert_equal firm.clients.count, firm.clients.update_all(description: "Great!")
end

def test_update_all_on_association_accessed_before_save_with_explicit_foreign_key
firm = Firm.new(name: "Firm", id: 100)
firm.clients << Client.first
Expand Down

0 comments on commit b39f98f

Please sign in to comment.