diff options
author | Rafael França <rafaelmfranca@gmail.com> | 2017-07-24 14:30:49 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-07-24 14:30:49 -0400 |
commit | 3a4a775732a0512d5ef0c97c2bbeb03110766715 (patch) | |
tree | f60776b39c23d89a8c84e6459c3980c1f3404f37 /activerecord/test/cases | |
parent | ad3aaadce0f8fb977aa2bd1c551160e83d7dac03 (diff) | |
parent | 36b7f3ae5bce6443a1928ec7194ff611eb2232b5 (diff) | |
download | rails-3a4a775732a0512d5ef0c97c2bbeb03110766715.tar.gz rails-3a4a775732a0512d5ef0c97c2bbeb03110766715.tar.bz2 rails-3a4a775732a0512d5ef0c97c2bbeb03110766715.zip |
Merge pull request #29915 from kamipo/fix_warning_assigned_but_unused_variable
Fix `warning: assigned but unused variable - comment`
Diffstat (limited to 'activerecord/test/cases')
-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 |