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_one_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_one_associations_test.rb')
-rw-r--r-- | activerecord/test/cases/associations/has_one_associations_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/cases/associations/has_one_associations_test.rb b/activerecord/test/cases/associations/has_one_associations_test.rb index 634f0ca736..885d9d7c2c 100644 --- a/activerecord/test/cases/associations/has_one_associations_test.rb +++ b/activerecord/test/cases/associations/has_one_associations_test.rb @@ -231,7 +231,7 @@ class HasOneAssociationsTest < ActiveRecord::TestCase end def test_build_association_dont_create_transaction - assert_no_queries(ignore_none: false) { + assert_no_queries { Firm.new.build_account } end |