diff options
-rw-r--r-- | activerecord/test/cases/associations/belongs_to_associations_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/cases/associations/belongs_to_associations_test.rb b/activerecord/test/cases/associations/belongs_to_associations_test.rb index 4f9d5ee3fa..0f7a249bf3 100644 --- a/activerecord/test/cases/associations/belongs_to_associations_test.rb +++ b/activerecord/test/cases/associations/belongs_to_associations_test.rb @@ -1178,7 +1178,7 @@ class BelongsToAssociationsTest < ActiveRecord::TestCase assert_difference "parent.reload.children_count", +1 do assert_difference "post.reload.comments_count", +1 do - comment = CommentWithAfterCreateUpdate.create(body: "foo", post: post, parent: parent) + CommentWithAfterCreateUpdate.create(body: "foo", post: post, parent: parent) end end end |