Permalink
Browse files

Warm up cache to prevent assertion failure.

  • Loading branch information...
1 parent 0e7744e commit 9ccf4d12888ba04fbd408c8c49c90a3914a32965 @zuhao zuhao committed Jul 8, 2014
Showing with 1 addition and 0 deletions.
  1. +1 −0 activerecord/test/cases/associations/nested_through_associations_test.rb
@@ -153,6 +153,7 @@ def test_has_many_through_has_one_with_has_many_through_source_reflection
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)

0 comments on commit 9ccf4d1

Please sign in to comment.