Permalink
Browse files

Warm up Symbols with where method

Looks like #first wasn't warm enough...
  • Loading branch information...
amatsuda committed Aug 14, 2014
1 parent 71e8f19 commit 9a7d7624a1e20094fddd0ff90d67e4049c09a568
Showing with 1 addition and 1 deletion.
  1. +1 −1 activerecord/test/cases/finder_test.rb
@@ -51,7 +51,7 @@ def test_find_passing_active_record_object_is_deprecated
end
def test_symbols_table_ref
- Post.first # warm up
+ Post.where("author_id" => nil) # warm up
x = Symbol.all_symbols.count
Post.where("title" => {"xxxqqqq" => "bar"})
assert_equal x, Symbol.all_symbols.count

0 comments on commit 9a7d762

Please sign in to comment.