diff options
author | Ryuta Kamizono <kamipo@gmail.com> | 2016-07-26 13:14:59 +0900 |
---|---|---|
committer | Ryuta Kamizono <kamipo@gmail.com> | 2016-07-26 13:14:59 +0900 |
commit | 944c7b9818a3f7a5dff3c17070de8448cf5e3339 (patch) | |
tree | ce29536bac2b67dd6b6effcaea730aa679832864 | |
parent | 245c64d428279122c5ae2ddfdc4d420a87a88f9a (diff) | |
download | rails-944c7b9818a3f7a5dff3c17070de8448cf5e3339.tar.gz rails-944c7b9818a3f7a5dff3c17070de8448cf5e3339.tar.bz2 rails-944c7b9818a3f7a5dff3c17070de8448cf5e3339.zip |
Make `force_signal37_to_load_all_clients_of_firm` to private
This is not a test case.
-rw-r--r-- | activerecord/test/cases/associations/has_many_associations_test.rb | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/activerecord/test/cases/associations/has_many_associations_test.rb b/activerecord/test/cases/associations/has_many_associations_test.rb index 325a06d724..827020540c 100644 --- a/activerecord/test/cases/associations/has_many_associations_test.rb +++ b/activerecord/test/cases/associations/has_many_associations_test.rb @@ -459,10 +459,6 @@ class HasManyAssociationsTest < ActiveRecord::TestCase assert_predicate person.references, :exists? end - def force_signal37_to_load_all_clients_of_firm - companies(:first_firm).clients_of_firm.each {|f| } - end - # sometimes tests on Oracle fail if ORDER BY is not provided therefore add always :order with :first def test_counting_with_counter_sql assert_equal 3, Firm.all.merge!(:order => "id").first.clients.count @@ -2428,4 +2424,10 @@ class HasManyAssociationsTest < ActiveRecord::TestCase assert_equal [bulb.id], car.bulb_ids assert_no_queries { car.bulb_ids } end + + private + + def force_signal37_to_load_all_clients_of_firm + companies(:first_firm).clients_of_firm.load_target + end end |