diff options
author | Santiago Pastorino <santiago@wyeworks.com> | 2016-07-26 11:30:43 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-07-26 11:30:43 -0300 |
commit | c59715fa256b940f7bce912c5b4b2584fac05154 (patch) | |
tree | 039dce4ef1356751d8f41f75815c6ab4270046a3 /activerecord/test/cases | |
parent | d6dfbe83964777726cf4b37e1c54ec837b24651c (diff) | |
parent | 944c7b9818a3f7a5dff3c17070de8448cf5e3339 (diff) | |
download | rails-c59715fa256b940f7bce912c5b4b2584fac05154.tar.gz rails-c59715fa256b940f7bce912c5b4b2584fac05154.tar.bz2 rails-c59715fa256b940f7bce912c5b4b2584fac05154.zip |
Merge pull request #25953 from kamipo/make_force_signal37_to_load_all_clients_of_firm_to_private
Make `force_signal37_to_load_all_clients_of_firm` to private
Diffstat (limited to 'activerecord/test/cases')
-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 |