diff options
author | Akira Matsuda <ronnie@dio.jp> | 2014-08-15 00:08:47 +0900 |
---|---|---|
committer | Akira Matsuda <ronnie@dio.jp> | 2014-08-15 00:08:47 +0900 |
commit | 9a7d7624a1e20094fddd0ff90d67e4049c09a568 (patch) | |
tree | f835a6346cea7d5006f0974cd5737a74a5ed7993 /activerecord/test | |
parent | 71e8f199d75fcad804c6a36e089b6b8fb4071192 (diff) | |
download | rails-9a7d7624a1e20094fddd0ff90d67e4049c09a568.tar.gz rails-9a7d7624a1e20094fddd0ff90d67e4049c09a568.tar.bz2 rails-9a7d7624a1e20094fddd0ff90d67e4049c09a568.zip |
Warm up Symbols with where method
Looks like #first wasn't warm enough...
Diffstat (limited to 'activerecord/test')
-rw-r--r-- | activerecord/test/cases/finder_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/cases/finder_test.rb b/activerecord/test/cases/finder_test.rb index 40e51a0cdc..95d006279d 100644 --- a/activerecord/test/cases/finder_test.rb +++ b/activerecord/test/cases/finder_test.rb @@ -51,7 +51,7 @@ class FinderTest < ActiveRecord::TestCase 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 |