diff options
author | Ryuta Kamizono <kamipo@gmail.com> | 2018-10-05 04:30:01 +0900 |
---|---|---|
committer | Ryuta Kamizono <kamipo@gmail.com> | 2018-10-05 04:30:01 +0900 |
commit | 45be690f8e6db019aac6198ba49d608a2e14824b (patch) | |
tree | 5480c2880702cd9235ac7221f3a59b850916a178 /activerecord/test/cases/associations/has_many_through_associations_test.rb | |
parent | 811be477786455d144819a5e9fbb7f9f54b8da69 (diff) | |
download | rails-45be690f8e6db019aac6198ba49d608a2e14824b.tar.gz rails-45be690f8e6db019aac6198ba49d608a2e14824b.tar.bz2 rails-45be690f8e6db019aac6198ba49d608a2e14824b.zip |
Remove `ignore_none: false` to assert no queries more strictly
Follow up 811be477786455d144819a5e9fbb7f9f54b8da69.
Diffstat (limited to 'activerecord/test/cases/associations/has_many_through_associations_test.rb')
-rw-r--r-- | activerecord/test/cases/associations/has_many_through_associations_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/cases/associations/has_many_through_associations_test.rb b/activerecord/test/cases/associations/has_many_through_associations_test.rb index 40631e3272..94ad6e2d4d 100644 --- a/activerecord/test/cases/associations/has_many_through_associations_test.rb +++ b/activerecord/test/cases/associations/has_many_through_associations_test.rb @@ -1198,7 +1198,7 @@ class HasManyThroughAssociationsTest < ActiveRecord::TestCase def test_has_many_through_associations_on_new_records_use_null_relations person = Person.new - assert_no_queries(ignore_none: false) do + assert_no_queries do assert_equal [], person.posts assert_equal [], person.posts.where(body: "omg") assert_equal [], person.posts.pluck(:body) |