aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases
diff options
context:
space:
mode:
authorZuhao Wan <wanzuhao@gmail.com>2014-07-08 21:47:55 +0800
committerZuhao Wan <wanzuhao@gmail.com>2014-07-08 21:54:42 +0800
commit9ccf4d12888ba04fbd408c8c49c90a3914a32965 (patch)
tree1a3ef5e22559851717da7c49acdc111549b64663 /activerecord/test/cases
parent0e7744e55e8528c9fc3b88e98d5e5cdd29651eb0 (diff)
downloadrails-9ccf4d12888ba04fbd408c8c49c90a3914a32965.tar.gz
rails-9ccf4d12888ba04fbd408c8c49c90a3914a32965.tar.bz2
rails-9ccf4d12888ba04fbd408c8c49c90a3914a32965.zip
Warm up cache to prevent assertion failure.
Diffstat (limited to 'activerecord/test/cases')
-rw-r--r--activerecord/test/cases/associations/nested_through_associations_test.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/activerecord/test/cases/associations/nested_through_associations_test.rb b/activerecord/test/cases/associations/nested_through_associations_test.rb
index 8ef351cda8..3720d6d251 100644
--- a/activerecord/test/cases/associations/nested_through_associations_test.rb
+++ b/activerecord/test/cases/associations/nested_through_associations_test.rb
@@ -153,6 +153,7 @@ class NestedThroughAssociationsTest < ActiveRecord::TestCase
end
def test_has_many_through_has_one_with_has_many_through_source_reflection_preload
+ ActiveRecord::Base.connection.table_alias_length # preheat cache
members = assert_queries(4) { Member.includes(:organization_member_details).to_a.sort_by(&:id) }
groucho_details, other_details = member_details(:groucho), member_details(:some_other_guy)