Skip to content

Commit

Permalink
Clear class ivar before testing
Browse files Browse the repository at this point in the history
  • Loading branch information
amatsuda committed Jul 28, 2013
1 parent 06ac577 commit 6c32bad
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -605,6 +605,8 @@ def test_save_of_record_with_loaded_belongs_to
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
Expand Down

0 comments on commit 6c32bad

Please sign in to comment.