diff options
author | Koichi ITO <koic.ito@gmail.com> | 2017-05-29 20:04:24 +0900 |
---|---|---|
committer | Koichi ITO <koic.ito@gmail.com> | 2017-05-29 20:04:24 +0900 |
commit | e49b7dea48e3c5011c8a5cd0256e96251e5798f0 (patch) | |
tree | 1453e03fd85dba2646bdf888e562c92e6643222f /activerecord | |
parent | 7a3db2ea15970e4c9c31a2b23303928aeadb391d (diff) | |
download | rails-e49b7dea48e3c5011c8a5cd0256e96251e5798f0.tar.gz rails-e49b7dea48e3c5011c8a5cd0256e96251e5798f0.tar.bz2 rails-e49b7dea48e3c5011c8a5cd0256e96251e5798f0.zip |
Remove a redundant test assertion
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/test/cases/associations/eager_test.rb | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/activerecord/test/cases/associations/eager_test.rb b/activerecord/test/cases/associations/eager_test.rb index 36238dd088..4271a09c9b 100644 --- a/activerecord/test/cases/associations/eager_test.rb +++ b/activerecord/test/cases/associations/eager_test.rb @@ -1094,12 +1094,6 @@ class EagerAssociationTest < ActiveRecord::TestCase assert_equal authors(:david), assert_no_queries { posts[0].author } posts = assert_queries(2) do - Post.all.merge!(select: "distinct posts.*", includes: :author, joins: [:comments], where: "comments.body like 'Thank you%'", order: "posts.id").to_a - end - assert_equal [posts(:welcome)], posts - assert_equal authors(:david), assert_no_queries { posts[0].author } - - posts = assert_queries(2) do Post.all.merge!(includes: :author, joins: { taggings: :tag }, where: "tags.name = 'General'", order: "posts.id").to_a end assert_equal posts(:welcome, :thinking), posts |