diff options
author | Akira Matsuda <ronnie@dio.jp> | 2013-07-27 07:09:37 +0900 |
---|---|---|
committer | Akira Matsuda <ronnie@dio.jp> | 2013-07-29 03:03:24 +0900 |
commit | 6c32baddc04be38aa0a3fdbcfff466fbe1362e53 (patch) | |
tree | a840335bac0007c4319a2b166c4d4b36681fea8b /activerecord/test/cases | |
parent | 06ac57776cf9ca75521b1f4dd2a32edb53a572e6 (diff) | |
download | rails-6c32baddc04be38aa0a3fdbcfff466fbe1362e53.tar.gz rails-6c32baddc04be38aa0a3fdbcfff466fbe1362e53.tar.bz2 rails-6c32baddc04be38aa0a3fdbcfff466fbe1362e53.zip |
Clear class ivar before testing
Diffstat (limited to 'activerecord/test/cases')
-rw-r--r-- | activerecord/test/cases/associations/belongs_to_associations_test.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/activerecord/test/cases/associations/belongs_to_associations_test.rb b/activerecord/test/cases/associations/belongs_to_associations_test.rb index 0267cdf6e0..a79f145e31 100644 --- a/activerecord/test/cases/associations/belongs_to_associations_test.rb +++ b/activerecord/test/cases/associations/belongs_to_associations_test.rb @@ -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 |