aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases
diff options
context:
space:
mode:
authorRafael França <rafaelmfranca@gmail.com>2017-07-24 14:30:49 -0400
committerGitHub <noreply@github.com>2017-07-24 14:30:49 -0400
commit3a4a775732a0512d5ef0c97c2bbeb03110766715 (patch)
treef60776b39c23d89a8c84e6459c3980c1f3404f37 /activerecord/test/cases
parentad3aaadce0f8fb977aa2bd1c551160e83d7dac03 (diff)
parent36b7f3ae5bce6443a1928ec7194ff611eb2232b5 (diff)
downloadrails-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.rb2
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