mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Clear class ivar before testing
This commit is contained in:
parent
06ac57776c
commit
6c32baddc0
1 changed files with 2 additions and 0 deletions
|
@ -605,6 +605,8 @@ class BelongsToAssociationsTest < ActiveRecord::TestCase
|
|||
end
|
||||
|
||||
def test_dependent_delete_and_destroy_with_belongs_to
|
||||
AuthorAddress.destroyed_author_address_ids.clear
|
||||
|
||||
author_address = author_addresses(:david_address)
|
||||
author_address_extra = author_addresses(:david_address_extra)
|
||||
assert_equal [], AuthorAddress.destroyed_author_address_ids
|
||||
|
|
Loading…
Reference in a new issue