diff options
author | Ryuta Kamizono <kamipo@gmail.com> | 2017-08-25 01:11:48 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-08-25 01:11:48 +0900 |
commit | 938b9ea40853f4f1525fad2a3e11e94273dc8ff1 (patch) | |
tree | e791c9859018e41f4c2bb82b1a2eeece74e742ed /activerecord | |
parent | 9de6c6c91c715b2c7b4a566b5d350e25936bdc78 (diff) | |
parent | 46e997430a857eb265739e5891aa34c7e8cfbea2 (diff) | |
download | rails-938b9ea40853f4f1525fad2a3e11e94273dc8ff1.tar.gz rails-938b9ea40853f4f1525fad2a3e11e94273dc8ff1.tar.bz2 rails-938b9ea40853f4f1525fad2a3e11e94273dc8ff1.zip |
Merge pull request #30398 from yahonda/seed52024
Address `test_after_save_callback_with_autosave` failure
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/test/cases/autosave_association_test.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/activerecord/test/cases/autosave_association_test.rb b/activerecord/test/cases/autosave_association_test.rb index ae492f1c1c..da5e830ebc 100644 --- a/activerecord/test/cases/autosave_association_test.rb +++ b/activerecord/test/cases/autosave_association_test.rb @@ -1724,6 +1724,10 @@ class TestAutosaveAssociationOnAHasManyAssociationWithInverse < ActiveRecord::Te end end + def setup + Comment.delete_all + end + def test_after_save_callback_with_autosave post = Post.new(title: "Test", body: "...") comment = post.comments.build(body: "...") |