diff options
author | Akira Matsuda <ronnie@dio.jp> | 2014-08-21 06:52:54 +0900 |
---|---|---|
committer | Akira Matsuda <ronnie@dio.jp> | 2014-08-21 06:52:54 +0900 |
commit | f02c9726f1e62335d6405a7460b3490b9e10c4d8 (patch) | |
tree | 4cadf945a5a55f6468b1e2163791e158734975e4 /activerecord/test/cases/relation | |
parent | 31abbe5154f63175fb3bc49b5e9b6fa008a9ac73 (diff) | |
download | rails-f02c9726f1e62335d6405a7460b3490b9e10c4d8.tar.gz rails-f02c9726f1e62335d6405a7460b3490b9e10c4d8.tar.bz2 rails-f02c9726f1e62335d6405a7460b3490b9e10c4d8.zip |
"warning: assigned but unused variable"
Diffstat (limited to 'activerecord/test/cases/relation')
-rw-r--r-- | activerecord/test/cases/relation/merging_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/cases/relation/merging_test.rb b/activerecord/test/cases/relation/merging_test.rb index 54a581e416..0d537fbfe3 100644 --- a/activerecord/test/cases/relation/merging_test.rb +++ b/activerecord/test/cases/relation/merging_test.rb @@ -153,7 +153,7 @@ class MergingDifferentRelationsTest < ActiveRecord::TestCase rating_1 = comment_1.ratings.create! comment_2 = dev.comments.create!(body: "I'm John", post: Post.first) - rating_2 = comment_2.ratings.create! + comment_2.ratings.create! assert_equal dev.ratings, [rating_1] end |