diff options
author | Ryuta Kamizono <kamipo@gmail.com> | 2017-12-19 23:24:28 +0900 |
---|---|---|
committer | Ryuta Kamizono <kamipo@gmail.com> | 2017-12-19 23:24:28 +0900 |
commit | 011f76e57b145b9e5ef1fd520df7d7096cf8896a (patch) | |
tree | c64a5865a71ddca65468090113baa595ff32046b /activerecord/test/cases | |
parent | 1ba72fd66be3c60c916c7a779c5001ed38675333 (diff) | |
download | rails-011f76e57b145b9e5ef1fd520df7d7096cf8896a.tar.gz rails-011f76e57b145b9e5ef1fd520df7d7096cf8896a.tar.bz2 rails-011f76e57b145b9e5ef1fd520df7d7096cf8896a.zip |
Remove outdated comments [ci skip]
Diffstat (limited to 'activerecord/test/cases')
-rw-r--r-- | activerecord/test/cases/relations_test.rb | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/activerecord/test/cases/relations_test.rb b/activerecord/test/cases/relations_test.rb index 915ff03c2c..474f8c3da7 100644 --- a/activerecord/test/cases/relations_test.rb +++ b/activerecord/test/cases/relations_test.rb @@ -780,8 +780,6 @@ class RelationTest < ActiveRecord::TestCase def test_find_all_using_where_with_relation david = authors(:david) - # switching the lines below would succeed in current rails - # assert_queries(2) { assert_queries(1) { relation = Author.where(id: Author.where(id: david.id)) assert_equal [david], relation.to_a @@ -820,8 +818,6 @@ class RelationTest < ActiveRecord::TestCase def test_find_all_using_where_with_relation_and_alternate_primary_key cool_first = minivans(:cool_first) - # switching the lines below would succeed in current rails - # assert_queries(2) { assert_queries(1) { relation = Minivan.where(minivan_id: Minivan.where(name: cool_first.name)) assert_equal [cool_first], relation.to_a |