aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2014-07-08 11:00:29 -0300
committerRafael Mendonça França <rafaelmfranca@gmail.com>2014-07-08 11:00:29 -0300
commit84b9cc0a2bdb4aa20a6ecf6cc9344efa779e2139 (patch)
treea682e8ade936e7bc07b8d84b944fa698d6c3ee5b
parent0792d3e78b8aea5bf1c1401e9a33f2dd3bae4420 (diff)
parent9ccf4d12888ba04fbd408c8c49c90a3914a32965 (diff)
downloadrails-84b9cc0a2bdb4aa20a6ecf6cc9344efa779e2139.tar.gz
rails-84b9cc0a2bdb4aa20a6ecf6cc9344efa779e2139.tar.bz2
rails-84b9cc0a2bdb4aa20a6ecf6cc9344efa779e2139.zip
Merge pull request #16093 from zuhao/refactor_activerecord_nested_through_associations_test
Warm up cache to prevent assertion failure.
-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)